2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for OpenJPEG 1.5.0.
5 # Report bugs to <openjpeg@googlegroups.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: openjpeg@googlegroups.com about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
702 PACKAGE_NAME='OpenJPEG'
703 PACKAGE_TARNAME='openjpeg'
704 PACKAGE_VERSION='1.5.0'
705 PACKAGE_STRING='OpenJPEG 1.5.0'
706 PACKAGE_BUGREPORT='openjpeg@googlegroups.com'
707 PACKAGE_URL='http://www.openjpeg.org'
709 ac_unique_file="configure.ac"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
746 ac_subst_vars='am__EXEEXT_FALSE
756 WANT_JPIP_SERVER_FALSE
757 WANT_JPIP_SERVER_TRUE
785 pkgconfig_requires_private
849 INSTALL_STRIP_PROGRAM
903 program_transform_name
916 enable_option_checking
922 enable_dependency_tracking
937 ac_precious_vars='build_alias
967 # Initialize some variables set by options.
969 ac_init_version=false
970 ac_unrecognized_opts=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
981 program_transform_name=s,x,x,
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1006 infodir='${datarootdir}/info'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\$ac_option
1027 *=*) 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 OpenJPEG 1.5.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 [$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/openjpeg]
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]
1571 --target=TARGET configure for building compilers for TARGET [HOST]
1575 if test -n "$ac_init_help"; then
1576 case $ac_init_help in
1577 short | recursive ) echo "Configuration of OpenJPEG 1.5.0:";;
1582 --disable-option-checking ignore unrecognized --enable/--with options
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1585 --enable-silent-rules less verbose build output (undo: `make V=1')
1586 --disable-silent-rules verbose build output (undo: `make V=0')
1587 --enable-shared[=PKGS] build shared libraries [default=yes]
1588 --enable-static[=PKGS] build static libraries [default=yes]
1589 --enable-fast-install[=PKGS]
1590 optimize for fast installation [default=yes]
1591 --disable-dependency-tracking speeds up one-time build
1592 --enable-dependency-tracking do not reject slow dependency extractors
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --enable-debug build with debug symbols [default=disabled]
1595 --enable-mj2 build mj2 binaries [default=disabled]
1596 --enable-jpwl build JPWL library [default=disabled]
1597 --enable-jpip build jpip library [default=disabled]
1598 --enable-jpip-server build jpip server [default=disabled]
1599 --disable-doc Disable documentation build [default=enabled]
1600 --disable-png disable PNG support [default=enabled]
1601 --disable-tiff disable TIFF support [default=enabled]
1602 --disable-lcms2 disable LCMS-2 support [default=enabled]
1603 --disable-lcms1 disable LCMS-1 support [default=enabled]
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-pic try to use only PIC/non-PIC objects [default=use
1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1611 --with-doxygen=FILE doxygen program to use [default=doxygen]
1613 Some influential environment variables:
1614 CC C compiler command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1622 PKG_CONFIG path to pkg-config utility
1624 directories to add to pkg-config's search path
1626 path overriding pkg-config's built-in search path
1627 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1628 PNG_LIBS linker flags for PNG, overriding pkg-config
1629 Z_CFLAGS preprocessor flags for libz
1630 Z_LIBS linker flags for libz
1631 TIFF_CFLAGS preprocessor flags for libtiff
1632 TIFF_LIBS linker flags for libtiff
1634 C compiler flags for LCMS2, overriding pkg-config
1635 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
1637 C compiler flags for LCMS1, overriding pkg-config
1638 LCMS1_LIBS linker flags for LCMS1, overriding pkg-config
1640 compiler flag for the thread library
1641 THREAD_LIBS linker flags for thread library
1642 FCGI_CFLAGS preprocessor flags for libfcgi
1643 FCGI_LIBS linker flags for libfcgi
1645 C compiler flags for LIBCURL, overriding pkg-config
1647 linker flags for LIBCURL, 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 <openjpeg@googlegroups.com>.
1653 OpenJPEG home page: <http://www.openjpeg.org>.
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1683 .) # We are building in place.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1716 OpenJPEG configure 1.5.0
1717 generated by GNU Autoconf 2.65
1719 Copyright (C) 2009 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_compile
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 $as_test_x conftest$ac_exeext
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_link
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1831 if ac_fn_c_try_compile "$LINENO"; then :
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 } # ac_fn_c_check_header_compile
1845 # ac_fn_c_try_cpp LINENO
1846 # ----------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_cpp conftest.$ac_ext"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } >/dev/null && {
1867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 as_fn_set_status $ac_retval
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1939 #define $2 innocuous_$2
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char $2 (); below.
1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944 <limits.h> exists even on freestanding compilers. */
1947 # include <limits.h>
1949 # include <assert.h>
1954 /* Override any GCC internal prototype to avoid an error.
1955 Use char because int might match the return type of a GCC
1956 builtin and then its argument prototype would still apply. */
1961 /* The GNU C library defines this for functions which it implements
1962 to always fail with ENOSYS. Some functions are actually named
1963 something starting with __ and the normal name is an alias. */
1964 #if defined __stub_$2 || defined __stub___$2
1976 if ac_fn_c_try_link "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext \
1982 conftest$ac_exeext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 } # ac_fn_c_check_func
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1994 It was created by OpenJPEG $as_me 1.5.0, which was
1995 generated by GNU Autoconf 2.65. Invocation command line was
2007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_must_keep_next=false
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084 -* ) ac_must_keep_next=true ;;
2087 as_fn_append ac_configure_args " '$ac_arg'"
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log. We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2106 ## ---------------- ##
2107 ## Cache variables. ##
2108 ## ---------------- ##
2111 # The following way of writing the cache mishandles newlines in values,
2113 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2114 eval ac_val=\$$ac_var
2118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2122 _ | IFS | as_nl) ;; #(
2123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2124 *) { eval $ac_var=; unset $ac_var;} ;;
2129 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2130 *${as_nl}ac_space=\ *)
2132 "s/'\''/'\''\\\\'\'''\''/g;
2133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2144 ## ----------------- ##
2145 ## Output variables. ##
2146 ## ----------------- ##
2149 for ac_var in $ac_subst_vars
2151 eval ac_val=\$$ac_var
2153 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 $as_echo "$ac_var='\''$ac_val'\''"
2159 if test -n "$ac_subst_files"; then
2161 ## ------------------- ##
2162 ## File substitutions. ##
2163 ## ------------------- ##
2166 for ac_var in $ac_subst_files
2168 eval ac_val=\$$ac_var
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 $as_echo "$ac_var='\''$ac_val'\''"
2177 if test -s confdefs.h; then
2187 test "$ac_signal" != 0 &&
2188 $as_echo "$as_me: caught signal $ac_signal"
2189 $as_echo "$as_me: exit $exit_status"
2191 rm -f core *.core core.conftest.* &&
2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2195 for ac_signal in 1 2 13 15; do
2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2201 rm -f -r conftest* confdefs.h
2203 $as_echo "/* confdefs.h */" > confdefs.h
2205 # Predefined preprocessor variables.
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_NAME "$PACKAGE_NAME"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_STRING "$PACKAGE_STRING"
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_URL "$PACKAGE_URL"
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2236 if test -n "$CONFIG_SITE"; then
2237 ac_site_file1=$CONFIG_SITE
2238 elif test "x$prefix" != xNONE; then
2239 ac_site_file1=$prefix/share/config.site
2240 ac_site_file2=$prefix/etc/config.site
2242 ac_site_file1=$ac_default_prefix/share/config.site
2243 ac_site_file2=$ac_default_prefix/etc/config.site
2245 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2247 test "x$ac_site_file" = xNONE && continue
2248 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2250 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2251 sed 's/^/| /' "$ac_site_file" >&5
2256 if test -r "$cache_file"; then
2257 # Some versions of bash will fail to source /dev/null (special files
2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2261 $as_echo "$as_me: loading cache $cache_file" >&6;}
2263 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2264 *) . "./$cache_file";;
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2269 $as_echo "$as_me: creating cache $cache_file" >&6;}
2273 # Check that the precious variables saved in the cache have kept the same
2275 ac_cache_corrupted=false
2276 for ac_var in $ac_precious_vars; do
2277 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2278 eval ac_new_set=\$ac_env_${ac_var}_set
2279 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2280 eval ac_new_val=\$ac_env_${ac_var}_value
2281 case $ac_old_set,$ac_new_set in
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2284 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2285 ac_cache_corrupted=: ;;
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2292 if test "x$ac_old_val" != "x$ac_new_val"; then
2293 # differences in whitespace do not lead to failure.
2294 ac_old_val_w=`echo x $ac_old_val`
2295 ac_new_val_w=`echo x $ac_new_val`
2296 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2298 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2299 ac_cache_corrupted=:
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2302 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2303 eval $ac_var=\$ac_old_val
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2306 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2308 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2311 # Pass precious variables to config.status.
2312 if test "$ac_new_set" = set; then
2314 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2315 *) ac_arg=$ac_var=$ac_new_val ;;
2317 case " $ac_configure_args " in
2318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2319 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323 if $ac_cache_corrupted; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2327 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2328 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2330 ## -------------------- ##
2331 ## Main body of script. ##
2332 ## -------------------- ##
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343 ac_config_headers="$ac_config_headers opj_config.h"
2347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348 for ac_t in install-sh install.sh shtool; do
2349 if test -f "$ac_dir/$ac_t"; then
2351 ac_install_sh="$ac_aux_dir/$ac_t -c"
2356 if test -z "$ac_aux_dir"; then
2357 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2360 # These three variables are undocumented and unsupported,
2361 # and are intended to be withdrawn in a future Autoconf release.
2362 # They can cause serious problems if a builder's source tree is in a directory
2363 # whose full name contains unusual characters.
2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2366 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2369 # Make sure we can run config.sub.
2370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2371 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2374 $as_echo_n "checking build system type... " >&6; }
2375 if test "${ac_cv_build+set}" = set; then :
2376 $as_echo_n "(cached) " >&6
2378 ac_build_alias=$build_alias
2379 test "x$ac_build_alias" = x &&
2380 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2381 test "x$ac_build_alias" = x &&
2382 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2384 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2388 $as_echo "$ac_cv_build" >&6; }
2389 case $ac_cv_build in
2391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2394 ac_save_IFS=$IFS; IFS='-'
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2408 $as_echo_n "checking host system type... " >&6; }
2409 if test "${ac_cv_host+set}" = set; then :
2410 $as_echo_n "(cached) " >&6
2412 if test "x$host_alias" = x; then
2413 ac_cv_host=$ac_cv_build
2415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2416 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2427 ac_save_IFS=$IFS; IFS='-'
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if test "${ac_cv_target+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2445 if test "x$target_alias" = x; then
2446 ac_cv_target=$ac_cv_host
2448 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2454 $as_echo "$ac_cv_target" >&6; }
2455 case $ac_cv_target in
2457 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2459 target=$ac_cv_target
2460 ac_save_IFS=$IFS; IFS='-'
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2473 # The aliases save the names the user supplied, while $host etc.
2474 # will get canonicalized.
2475 test -n "$target_alias" &&
2476 test "$program_prefix$program_suffix$program_transform_name" = \
2478 program_prefix=${target_alias}-
2482 am__api_version='1.11'
2484 # Find a good install program. We prefer a C program (faster),
2485 # so one script is as good as another. But avoid the broken or
2486 # incompatible versions:
2487 # SysV /etc/install, /usr/sbin/install
2488 # SunOS /usr/etc/install
2489 # IRIX /sbin/install
2491 # AmigaOS /C/install, which installs bootblocks on floppy discs
2492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2495 # OS/2's system install, which has a completely different semantic
2496 # ./install, which can be erroneously created by make from ./install.sh.
2497 # Reject install programs that cannot install multiple files.
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in #((
2511 ./ | .// | /[cC]/* | \
2512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 # Don't use installbsd from OSF since it installs stuff as root
2519 for ac_prog in ginstall scoinst install; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2522 if test $ac_prog = install &&
2523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # AIX install. It has an incompatible calling convention.
2526 elif test $ac_prog = install &&
2527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # program-specific install script used by HP pwplus--don't use.
2531 rm -rf conftest.one conftest.two conftest.dir
2532 echo one > conftest.one
2533 echo two > conftest.two
2535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2536 test -s conftest.one && test -s conftest.two &&
2537 test -s conftest.dir/conftest.one &&
2538 test -s conftest.dir/conftest.two
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2553 rm -rf conftest.one conftest.two conftest.dir
2556 if test "${ac_cv_path_install+set}" = set; then
2557 INSTALL=$ac_cv_path_install
2559 # As a last resort, use the slow shell script. Don't cache a
2560 # value for INSTALL within a source directory, because that will
2561 # break other packages using the cache if that directory is
2562 # removed, or if the value is a relative name.
2563 INSTALL=$ac_install_sh
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2567 $as_echo "$INSTALL" >&6; }
2569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2570 # It thinks the first close brace ends the variable substitution.
2571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2578 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 echo timestamp > conftest.file
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name. Accept space and tab only in the latter.
2587 *[\\\"\#\$\&\'\`$am_lf]*)
2588 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2595 # Do `set' in a subshell so we don't clobber the current shell's
2596 # arguments. Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2601 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2602 if test "$*" = "X"; then
2604 set X `ls -t "$srcdir/configure" conftest.file`
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2618 test "$2" = conftest.file
2624 as_fn_error "newly created file is older than distributed files!
2625 Check your system clock" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 test "$program_prefix" != NONE &&
2630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2631 # Use a double $ so make ignores it.
2632 test "$program_suffix" != NONE &&
2633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2634 # Double any \ or $.
2635 # By default was `s,x,x', remove it if useless.
2636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2639 # expand $ac_aux_dir to an absolute path
2640 am_aux_dir=`cd $ac_aux_dir && pwd`
2642 if test x"${MISSING+set}" != xset; then
2645 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2647 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650 # Use eval to expand $SHELL
2651 if eval "$MISSING --run true"; then
2652 am_missing_run="$MISSING --run "
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2659 if test x"${install_sh}" != xset; then
2662 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2664 install_sh="\${SHELL} $am_aux_dir/install-sh"
2668 # Installed binaries are usually stripped using `strip' when the user
2669 # run `make install-strip'. However `strip' might not be the right
2670 # tool to use in cross-compilation environments, therefore Automake
2671 # will honor the `STRIP' environment variable to overrule this program.
2672 if test "$cross_compiling" != no; then
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_STRIP+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2681 if test -n "$STRIP"; then
2682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 STRIP=$ac_cv_prog_STRIP
2702 if test -n "$STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2704 $as_echo "$STRIP" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2712 if test -z "$ac_cv_prog_STRIP"; then
2714 # Extract the first word of "strip", so it can be a program name with args.
2715 set dummy strip; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$ac_ct_STRIP"; then
2722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_STRIP="strip"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2742 if test -n "$ac_ct_STRIP"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2744 $as_echo "$ac_ct_STRIP" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2750 if test "x$ac_ct_STRIP" = x; then
2753 case $cross_compiling:$ac_tool_warned in
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2762 STRIP="$ac_cv_prog_STRIP"
2766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2770 if test -z "$MKDIR_P"; then
2771 if test "${ac_cv_path_mkdir+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 test -z "$as_dir" && as_dir=.
2779 for ac_prog in mkdir gmkdir; do
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2782 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2783 'mkdir (GNU coreutils) '* | \
2784 'mkdir (coreutils) '* | \
2785 'mkdir (fileutils) '4.1*)
2786 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2796 test -d ./--version && rmdir ./--version
2797 if test "${ac_cv_path_mkdir+set}" = set; then
2798 MKDIR_P="$ac_cv_path_mkdir -p"
2800 # As a last resort, use the slow shell script. Don't cache a
2801 # value for MKDIR_P within a source directory, because that will
2802 # break other packages using the cache if that directory is
2803 # removed, or if the value is a relative name.
2804 MKDIR_P="$ac_install_sh -d"
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2808 $as_echo "$MKDIR_P" >&6; }
2812 [\\/$]* | ?:[\\/]*) ;;
2813 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2816 for ac_prog in gawk mawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_AWK+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$AWK" && break
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2863 $as_echo_n "(cached) " >&6
2865 cat >conftest.make <<\_ACEOF
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2896 rmdir .tst 2>/dev/null
2898 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2899 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2900 # is not polluted with repeated "-I."
2901 am__isrc=' -I$(srcdir)'
2902 # test to see if srcdir already configured
2903 if test -f $srcdir/config.status; then
2904 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2908 # test whether we have cygpath
2909 if test -z "$CYGPATH_W"; then
2910 if (cygpath --version) >/dev/null 2>/dev/null; then
2911 CYGPATH_W='cygpath -w'
2918 # Define the identity of the package.
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE "$PACKAGE"
2928 cat >>confdefs.h <<_ACEOF
2929 #define VERSION "$VERSION"
2932 # Some tools Automake needs.
2934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2948 # We need awk for the "check" target. The system "awk" is bad on
2950 # Always define AMTAR for backward compatibility.
2952 AMTAR=${AMTAR-"${am_missing_run}tar"}
2954 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2960 # Check whether --enable-silent-rules was given.
2961 if test "${enable_silent_rules+set}" = set; then :
2962 enableval=$enable_silent_rules;
2965 case $enable_silent_rules in
2966 yes) AM_DEFAULT_VERBOSITY=0;;
2967 no) AM_DEFAULT_VERBOSITY=1;;
2968 *) AM_DEFAULT_VERBOSITY=0;;
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2984 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2989 macro_version='2.2.6b'
2990 macro_revision='1.3017'
3004 ltmain="$ac_aux_dir/ltmain.sh"
3006 DEPDIR="${am__leading_dot}deps"
3008 ac_config_commands="$ac_config_commands depfiles"
3011 am_make=${MAKE-make}
3012 cat > confinc << 'END'
3014 @echo this is the am__doit target
3017 # If we don't find an include directive, just comment out the code.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3023 # First try GNU make style include.
3024 echo "include confinc" > confmf
3025 # Ignore all kinds of additional output from `make'.
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3033 # Now try BSD make style include.
3034 if test "$am__include" = "#"; then
3035 echo '.include "confinc"' > confmf
3036 case `$am_make -s -f confmf 2> /dev/null` in #(
3037 *the\ am__doit\ target*)
3038 am__include=.include
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3047 $as_echo "$_am_result" >&6; }
3048 rm -f confinc confmf
3050 # Check whether --enable-dependency-tracking was given.
3051 if test "${enable_dependency_tracking+set}" = set; then :
3052 enableval=$enable_dependency_tracking;
3055 if test "x$enable_dependency_tracking" != xno; then
3056 am_depcomp="$ac_aux_dir/depcomp"
3059 if test "x$enable_dependency_tracking" != xno; then
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3112 if test -z "$ac_cv_prog_CC"; then
3114 # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_ac_ct_CC="gcc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3150 if test "x$ac_ct_CC" = x; then
3153 case $cross_compiling:$ac_tool_warned in
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3165 if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3206 if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if test "${ac_cv_prog_CC+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226 ac_prog_rejected=yes
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test $ac_prog_rejected = yes; then
3238 # We found a bogon in the path, so make sure we never use it.
3239 set dummy $ac_cv_prog_CC
3241 if test $# != 0; then
3242 # We chose a different compiler from the bogus one.
3243 # However, it has the same basename, so the bogon will be chosen
3244 # first if we set CC to just the basename; use the full file name.
3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 for ac_prog in cl.exe
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$CC" && break
3306 if test -z "$CC"; then
3308 for ac_prog in cl.exe
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3315 $as_echo_n "(cached) " >&6
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CC="$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3347 test -n "$ac_ct_CC" && break
3350 if test "x$ac_ct_CC" = x; then
3353 case $cross_compiling:$ac_tool_warned in
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details." "$LINENO" 5; }
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3375 for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 if test -s conftest.err; then
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3391 rm -f conftest.er1 conftest.err
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420 for ac_file in $ac_files
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429 if { { ac_try="$ac_link_default"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link_default") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3445 for ac_file in $ac_files ''
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3452 # We found the default executable, but exeext='' is most
3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 # We set ac_cv_exeext here because the later test for it is not
3461 # safe: cross compilers may not add the suffix if given an `-o'
3462 # argument, so we may need to know it at that point already.
3463 # Even if this section looks crufty: it has the advantage of
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3475 if test -z "$ac_file"; then :
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 { as_fn_set_status 77
3484 as_fn_error "C compiler cannot create executables
3485 See \`config.log' for more details." "$LINENO" 5; }; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493 $as_echo "$ac_file" >&6; }
3494 ac_exeext=$ac_cv_exeext
3496 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 $as_echo_n "checking for suffix of executables... " >&6; }
3500 if { { ac_try="$ac_link"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3513 # work properly (i.e., refer to `conftest.exe'), while it won't with
3515 for ac_file in conftest.exe conftest conftest.*; do
3516 test -f "$ac_file" || continue
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error "cannot compute suffix of executables: cannot compile and link
3528 See \`config.log' for more details." "$LINENO" 5; }
3530 rm -f conftest conftest$ac_cv_exeext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 $as_echo "$ac_cv_exeext" >&6; }
3534 rm -f conftest.$ac_ext
3535 EXEEXT=$ac_cv_exeext
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3543 FILE *f = fopen ("conftest.out", "w");
3544 return ferror (f) || fclose (f) != 0;
3550 ac_clean_files="$ac_clean_files conftest.out"
3551 # Check that the compiler produces executables we can run. If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554 $as_echo_n "checking whether we are cross compiling... " >&6; }
3555 if test "$cross_compiling" != yes; then
3556 { { ac_try="$ac_link"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3567 if { ac_try='./conftest$ac_cv_exeext'
3568 { { case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_try") 2>&5
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; }; then
3580 if test "$cross_compiling" = maybe; then
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details." "$LINENO" 5; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592 $as_echo "$cross_compiling" >&6; }
3594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if test "${ac_cv_objext+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compile") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 for ac_file in conftest.o conftest.obj conftest.*; do
3625 test -f "$ac_file" || continue;
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details." "$LINENO" 5; }
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3666 if ac_fn_c_try_compile "$LINENO"; then :
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if test "${ac_cv_prog_cc_g+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 if ac_fn_c_try_compile "$LINENO"; then :
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3719 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3735 if ac_fn_c_try_compile "$LINENO"; then :
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3756 if test "$GCC" = yes; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3767 ac_cv_prog_cc_c89=no
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3773 #include <sys/types.h>
3774 #include <sys/stat.h>
3775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3776 struct buf { int x; };
3777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778 static char *e (p, i)
3784 static char *f (char * (*g) (char **, int), char **p, ...)
3789 s = g (p, va_arg (v,int));
3794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3795 function prototypes and stuff, but not '\xHH' hex character constants.
3796 These don't provoke an error unfortunately, instead are silently treated
3797 as 'x'. The following induces an error, until -std is added to get
3798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3799 array size at least. It's necessary to write '\x00'==0 to get something
3800 that's true only with -std. */
3801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804 inside strings and character constants. */
3806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3808 int test (int i, double x);
3809 struct s1 {int (*f) (int a);};
3810 struct s2 {int (*f) (double a);};
3811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c89=$ac_arg
3829 rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c89" != "xno" && break
3832 rm -f conftest.$ac_ext
3837 case "x$ac_cv_prog_cc_c89" in
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3845 CC="$CC $ac_cv_prog_cc_c89"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3849 if test "x$ac_cv_prog_cc_c89" != xno; then :
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 depcc="$CC" am_compiler_list=
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3862 $as_echo_n "checking dependency style of $depcc... " >&6; }
3863 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3867 # We make a subdir and do the tests there. Otherwise we can end up
3868 # making bogus files that we don't know about and never remove. For
3869 # instance it was reported that on HP-UX the gcc test will end up
3870 # making a dummy file named `D' -- because `-MD' means `put the output
3873 # Copy depcomp to subdir because otherwise we won't find it if we're
3874 # using a relative directory.
3875 cp "$am_depcomp" conftest.dir
3877 # We will build objects and dependencies in a subdirectory because
3878 # it helps to detect inapplicable dependency modes. For instance
3879 # both Tru64's cc and ICC support -MD to output dependencies as a
3880 # side effect of compilation, but ICC will put the dependencies in
3881 # the current directory while Tru64 will put them in the object
3885 am_cv_CC_dependencies_compiler_type=none
3886 if test "$am_compiler_list" = ""; then
3887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890 case " $depcc " in #(
3891 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3894 for depmode in $am_compiler_list; do
3895 # Setup a source with many dependencies, because some compilers
3896 # like to wrap large dependency lists on column 80 (with \), and
3897 # we should not choose a depcomp mode which is confused by this.
3899 # We need to recreate these files for each test, as the compiler may
3900 # overwrite some of them when testing with obscure command lines.
3901 # This happens at least with the AIX C compiler.
3903 for i in 1 2 3 4 5 6; do
3904 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3905 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3906 # Solaris 8's {/usr,}/bin/sh.
3907 touch sub/conftst$i.h
3909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3911 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3912 # mode. It turns out that the SunPro C++ compiler does not properly
3913 # handle `-M -o', and we need to detect this. Also, some Intel
3914 # versions had trouble with output in subdirs
3915 am__obj=sub/conftest.${OBJEXT-o}
3916 am__minus_obj="-o $am__obj"
3919 # This depmode causes a compiler race in universal mode.
3920 test "$am__universal" = false || continue
3923 # after this tag, mechanisms are not by side-effect, so they'll
3924 # only be used when explicitly requested
3925 if test "x$enable_dependency_tracking" = xyes; then
3931 msvisualcpp | msvcmsys)
3932 # This compiler won't grok `-c -o', but also, the minuso test has
3933 # not run yet. These depmodes are late enough in the game, and
3934 # so weak that their functioning should not be impacted.
3935 am__obj=conftest.${OBJEXT-o}
3940 if depmode=$depmode \
3941 source=sub/conftest.c object=$am__obj \
3942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3944 >/dev/null 2>conftest.err &&
3945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949 # icc doesn't choke on unknown options, it will just issue warnings
3950 # or remarks (even with -Werror). So we grep stderr for any message
3951 # that says an option was ignored or not supported.
3952 # When given -MP, icc 7.0 and 7.1 complain thusly:
3953 # icc: Command line warning: ignoring option '-M'; no argument required
3954 # The diagnosis changed in icc 8.0:
3955 # icc: Command line remark: option '-MP' not supported
3956 if (grep 'ignoring option' conftest.err ||
3957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958 am_cv_CC_dependencies_compiler_type=$depmode
3967 am_cv_CC_dependencies_compiler_type=none
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976 test "x$enable_dependency_tracking" != xno \
3977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3979 am__fastdepCC_FALSE='#'
3981 am__fastdepCC_TRUE='#'
3982 am__fastdepCC_FALSE=
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3987 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3988 if test "${ac_cv_path_SED+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3992 for ac_i in 1 2 3 4 5 6 7; do
3993 ac_script="$ac_script$as_nl$ac_script"
3995 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3996 { ac_script=; unset ac_script;}
3997 if test -z "$SED"; then
3998 ac_path_SED_found=false
3999 # Loop through the user's path and test for each of PROGNAME-LIST
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir=.
4005 for ac_prog in sed gsed; do
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4008 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4009 # Check for GNU ac_path_SED and select it if it is found.
4010 # Check for GNU $ac_path_SED
4011 case `"$ac_path_SED" --version 2>&1` in
4013 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4016 $as_echo_n 0123456789 >"conftest.in"
4019 cat "conftest.in" "conftest.in" >"conftest.tmp"
4020 mv "conftest.tmp" "conftest.in"
4021 cp "conftest.in" "conftest.nl"
4022 $as_echo '' >> "conftest.nl"
4023 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4025 as_fn_arith $ac_count + 1 && ac_count=$as_val
4026 if test $ac_count -gt ${ac_path_SED_max-0}; then
4027 # Best one so far, save it but keep looking for a better one
4028 ac_cv_path_SED="$ac_path_SED"
4029 ac_path_SED_max=$ac_count
4031 # 10*(2^10) chars as input seems more than enough
4032 test $ac_count -gt 10 && break
4034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 $ac_path_SED_found && break 3
4042 if test -z "$ac_cv_path_SED"; then
4043 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4051 $as_echo "$ac_cv_path_SED" >&6; }
4052 SED="$ac_cv_path_SED"
4055 test -z "$SED" && SED=sed
4056 Xsed="$SED -e 1s/^X//"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4069 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 if test -z "$GREP"; then
4074 ac_path_GREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in grep ggrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4084 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4085 # Check for GNU ac_path_GREP and select it if it is found.
4086 # Check for GNU $ac_path_GREP
4087 case `"$ac_path_GREP" --version 2>&1` in
4089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4092 $as_echo_n 0123456789 >"conftest.in"
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'GREP' >> "conftest.nl"
4099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 as_fn_arith $ac_count + 1 && ac_count=$as_val
4102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_GREP="$ac_path_GREP"
4105 ac_path_GREP_max=$ac_count
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 $ac_path_GREP_found && break 3
4118 if test -z "$ac_cv_path_GREP"; then
4119 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4122 ac_cv_path_GREP=$GREP
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4127 $as_echo "$ac_cv_path_GREP" >&6; }
4128 GREP="$ac_cv_path_GREP"
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4132 $as_echo_n "checking for egrep... " >&6; }
4133 if test "${ac_cv_path_EGREP+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4136 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4137 then ac_cv_path_EGREP="$GREP -E"
4139 if test -z "$EGREP"; then
4140 ac_path_EGREP_found=false
4141 # Loop through the user's path and test for each of PROGNAME-LIST
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146 test -z "$as_dir" && as_dir=.
4147 for ac_prog in egrep; do
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4150 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4151 # Check for GNU ac_path_EGREP and select it if it is found.
4152 # Check for GNU $ac_path_EGREP
4153 case `"$ac_path_EGREP" --version 2>&1` in
4155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4158 $as_echo_n 0123456789 >"conftest.in"
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 $as_echo 'EGREP' >> "conftest.nl"
4165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167 as_fn_arith $ac_count + 1 && ac_count=$as_val
4168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_EGREP="$ac_path_EGREP"
4171 ac_path_EGREP_max=$ac_count
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179 $ac_path_EGREP_found && break 3
4184 if test -z "$ac_cv_path_EGREP"; then
4185 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4188 ac_cv_path_EGREP=$EGREP
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4194 $as_echo "$ac_cv_path_EGREP" >&6; }
4195 EGREP="$ac_cv_path_EGREP"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4199 $as_echo_n "checking for fgrep... " >&6; }
4200 if test "${ac_cv_path_FGREP+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4204 then ac_cv_path_FGREP="$GREP -F"
4206 if test -z "$FGREP"; then
4207 ac_path_FGREP_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213 test -z "$as_dir" && as_dir=.
4214 for ac_prog in fgrep; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4217 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4218 # Check for GNU ac_path_FGREP and select it if it is found.
4219 # Check for GNU $ac_path_FGREP
4220 case `"$ac_path_FGREP" --version 2>&1` in
4222 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4225 $as_echo_n 0123456789 >"conftest.in"
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo 'FGREP' >> "conftest.nl"
4232 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 as_fn_arith $ac_count + 1 && ac_count=$as_val
4235 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_FGREP="$ac_path_FGREP"
4238 ac_path_FGREP_max=$ac_count
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 $ac_path_FGREP_found && break 3
4251 if test -z "$ac_cv_path_FGREP"; then
4252 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255 ac_cv_path_FGREP=$FGREP
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4261 $as_echo "$ac_cv_path_FGREP" >&6; }
4262 FGREP="$ac_cv_path_FGREP"
4265 test -z "$GREP" && GREP=grep
4285 # Check whether --with-gnu-ld was given.
4286 if test "${with_gnu_ld+set}" = set; then :
4287 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4293 if test "$GCC" = yes; then
4294 # Check if gcc -print-prog-name=ld gives a path.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4296 $as_echo_n "checking for ld used by $CC... " >&6; }
4299 # gcc leaves a trailing carriage return which upsets mingw
4300 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4302 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4305 # Accept absolute paths.
4307 re_direlt='/[^/][^/]*/\.\./'
4308 # Canonicalize the pathname of ld
4309 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4310 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4311 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4313 test -z "$LD" && LD="$ac_prog"
4316 # If it fails, then pretend we aren't using GCC.
4320 # If it is relative, then search for the first ld in PATH.
4324 elif test "$with_gnu_ld" = yes; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4326 $as_echo_n "checking for GNU ld... " >&6; }
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4329 $as_echo_n "checking for non-GNU ld... " >&6; }
4331 if test "${lt_cv_path_LD+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 if test -z "$LD"; then
4335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4336 for ac_dir in $PATH; do
4338 test -z "$ac_dir" && ac_dir=.
4339 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4340 lt_cv_path_LD="$ac_dir/$ac_prog"
4341 # Check to see if the program is GNU ld. I'd rather use --version,
4342 # but apparently some variants of GNU ld only accept -v.
4343 # Break only if it was the GNU/non-GNU ld that we prefer.
4344 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4345 *GNU* | *'with BFD'*)
4346 test "$with_gnu_ld" != no && break
4349 test "$with_gnu_ld" != yes && break
4356 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4361 if test -n "$LD"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4363 $as_echo "$LD" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4368 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4370 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4371 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4374 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4375 case `$LD -v 2>&1 </dev/null` in
4376 *GNU* | *'with BFD'*)
4377 lt_cv_prog_gnu_ld=yes
4380 lt_cv_prog_gnu_ld=no
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4385 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4386 with_gnu_ld=$lt_cv_prog_gnu_ld
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4398 if test "${lt_cv_path_NM+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$NM"; then
4402 # Let the user override the test.
4405 lt_nm_to_check="${ac_tool_prefix}nm"
4406 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4407 lt_nm_to_check="$lt_nm_to_check nm"
4409 for lt_tmp_nm in $lt_nm_to_check; do
4410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4411 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4413 test -z "$ac_dir" && ac_dir=.
4414 tmp_nm="$ac_dir/$lt_tmp_nm"
4415 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4416 # Check to see if the nm accepts a BSD-compat flag.
4417 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4418 # nm: unknown option "B" ignored
4419 # Tru64's nm complains that /dev/null is an invalid object file
4420 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4421 */dev/null* | *'Invalid file or object type'*)
4422 lt_cv_path_NM="$tmp_nm -B"
4426 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4428 lt_cv_path_NM="$tmp_nm -p"
4432 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4433 continue # so that we can try to find one that supports BSD flags
4442 : ${lt_cv_path_NM=no}
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4446 $as_echo "$lt_cv_path_NM" >&6; }
4447 if test "$lt_cv_path_NM" != "no"; then
4450 # Didn't find any BSD compatible name lister, look for dumpbin.
4451 if test -n "$ac_tool_prefix"; then
4452 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -n "$DUMPBIN"; then
4462 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 DUMPBIN=$ac_cv_prog_DUMPBIN
4482 if test -n "$DUMPBIN"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4484 $as_echo "$DUMPBIN" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$DUMPBIN" && break
4494 if test -z "$DUMPBIN"; then
4495 ac_ct_DUMPBIN=$DUMPBIN
4496 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4498 # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4505 if test -n "$ac_ct_DUMPBIN"; then
4506 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4526 if test -n "$ac_ct_DUMPBIN"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4528 $as_echo "$ac_ct_DUMPBIN" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4535 test -n "$ac_ct_DUMPBIN" && break
4538 if test "x$ac_ct_DUMPBIN" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4547 DUMPBIN=$ac_ct_DUMPBIN
4552 if test "$DUMPBIN" != ":"; then
4556 test -z "$NM" && NM=nm
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4564 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4565 if test "${lt_cv_nm_interface+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 lt_cv_nm_interface="BSD nm"
4569 echo "int some_variable = 0;" > conftest.$ac_ext
4570 (eval echo "\"\$as_me:4570: $ac_compile\"" >&5)
4571 (eval "$ac_compile" 2>conftest.err)
4572 cat conftest.err >&5
4573 (eval echo "\"\$as_me:4573: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4574 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4575 cat conftest.err >&5
4576 (eval echo "\"\$as_me:4576: output\"" >&5)
4577 cat conftest.out >&5
4578 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4579 lt_cv_nm_interface="MS dumpbin"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4584 $as_echo "$lt_cv_nm_interface" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4587 $as_echo_n "checking whether ln -s works... " >&6; }
4589 if test "$LN_S" = "ln -s"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4594 $as_echo "no, using $LN_S" >&6; }
4597 # find the maximum length of command line arguments
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4599 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4600 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4608 # On DJGPP, this test can blow up pretty badly due to problems in libc
4609 # (any single argument exceeding 2000 bytes causes a buffer overrun
4610 # during glob expansion). Even if it were fixed, the result of this
4611 # check would be larger than it should be.
4612 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4616 # Under GNU Hurd, this test is not required because there is
4617 # no limit to the length of command line arguments.
4618 # Libtool will interpret -1 as no limit whatsoever
4619 lt_cv_sys_max_cmd_len=-1;
4622 cygwin* | mingw* | cegcc*)
4623 # On Win9x/ME, this test blows up -- it succeeds, but takes
4624 # about 5 minutes as the teststring grows exponentially.
4625 # Worse, since 9x/ME are not pre-emptively multitasking,
4626 # you end up with a "frozen" computer, even though with patience
4627 # the test eventually succeeds (with a max line length of 256k).
4628 # Instead, let's just punt: use the minimum linelength reported by
4629 # all of the supported platforms: 8192 (on NT/2K/XP).
4630 lt_cv_sys_max_cmd_len=8192;
4634 # On AmigaOS with pdksh, this test takes hours, literally.
4635 # So we just punt and use a minimum line length of 8192.
4636 lt_cv_sys_max_cmd_len=8192;
4639 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4640 # This has been around since 386BSD, at least. Likely further.
4641 if test -x /sbin/sysctl; then
4642 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4643 elif test -x /usr/sbin/sysctl; then
4644 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4646 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4648 # And add a safety zone
4649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4654 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4655 lt_cv_sys_max_cmd_len=196608
4659 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4660 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4661 # nice to cause kernel panics so lets avoid the loop below.
4662 # First set a reasonable default.
4663 lt_cv_sys_max_cmd_len=16384
4665 if test -x /sbin/sysconfig; then
4666 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4667 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4672 lt_cv_sys_max_cmd_len=102400
4674 sysv5* | sco5v6* | sysv4.2uw2*)
4675 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4676 if test -n "$kargmax"; then
4677 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4679 lt_cv_sys_max_cmd_len=32768
4683 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4684 if test -n "$lt_cv_sys_max_cmd_len"; then
4685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4688 # Make teststring a little bigger before we do anything with it.
4689 # a 1K string should be a reasonable start.
4690 for i in 1 2 3 4 5 6 7 8 ; do
4691 teststring=$teststring$teststring
4693 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4694 # If test is not a shell built-in, we'll probably end up computing a
4695 # maximum length that is only half of the actual maximum length, but
4697 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4698 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4699 test $i != 17 # 1/2 MB should be enough
4702 teststring=$teststring$teststring
4704 # Only check the string length outside the loop.
4705 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4707 # Add a significant safety factor because C++ compilers can tack on
4708 # massive amounts of additional arguments before passing them to the
4709 # linker. It appears as though 1/2 is a usable value.
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4717 if test -n $lt_cv_sys_max_cmd_len ; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4719 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4722 $as_echo "none" >&6; }
4724 max_cmd_len=$lt_cv_sys_max_cmd_len
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4736 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4737 # Try some XSI features
4740 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4742 && eval 'test $(( 1 + 1 )) -eq 2 \
4743 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4746 $as_echo "$xsi_shell" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4750 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4752 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4754 && lt_shell_append=yes
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4756 $as_echo "$lt_shell_append" >&6; }
4759 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4769 # test EBCDIC or ASCII
4770 case `echo X|tr X '\101'` in
4771 A) # ASCII based system
4772 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4773 lt_SP2NL='tr \040 \012'
4774 lt_NL2SP='tr \015\012 \040\040'
4776 *) # EBCDIC based system
4777 lt_SP2NL='tr \100 \n'
4778 lt_NL2SP='tr \r\n \100\100'
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4791 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 lt_cv_ld_reload_flag='-r'
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4798 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799 reload_flag=$lt_cv_ld_reload_flag
4800 case $reload_flag in
4802 *) reload_flag=" $reload_flag" ;;
4804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4807 if test "$GCC" = yes; then
4808 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -n "$OBJDUMP"; then
4832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 OBJDUMP=$ac_cv_prog_OBJDUMP
4852 if test -n "$OBJDUMP"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4854 $as_echo "$OBJDUMP" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4862 if test -z "$ac_cv_prog_OBJDUMP"; then
4863 ac_ct_OBJDUMP=$OBJDUMP
4864 # Extract the first word of "objdump", so it can be a program name with args.
4865 set dummy objdump; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4871 if test -n "$ac_ct_OBJDUMP"; then
4872 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4892 if test -n "$ac_ct_OBJDUMP"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4894 $as_echo "$ac_ct_OBJDUMP" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4900 if test "x$ac_ct_OBJDUMP" = x; then
4903 case $cross_compiling:$ac_tool_warned in
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4909 OBJDUMP=$ac_ct_OBJDUMP
4912 OBJDUMP="$ac_cv_prog_OBJDUMP"
4915 test -z "$OBJDUMP" && OBJDUMP=objdump
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4923 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4924 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 lt_cv_file_magic_cmd='$MAGIC_CMD'
4928 lt_cv_file_magic_test_file=
4929 lt_cv_deplibs_check_method='unknown'
4930 # Need to set the preceding variable on all platforms that support
4931 # interlibrary dependencies.
4932 # 'none' -- dependencies not supported.
4933 # `unknown' -- same as none, but documents that we really don't know.
4934 # 'pass_all' -- all dependencies passed with no checks.
4935 # 'test_compile' -- check by making test program.
4936 # 'file_magic [[regex]]' -- check by looking for files in library path
4937 # which responds to the $file_magic_cmd with a given extended regex.
4938 # If you have `file' or equivalent on your system and you're not sure
4939 # whether `pass_all' will *always* work, you probably want this one.
4943 lt_cv_deplibs_check_method=pass_all
4947 lt_cv_deplibs_check_method=pass_all
4951 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952 lt_cv_file_magic_cmd='/usr/bin/file -L'
4953 lt_cv_file_magic_test_file=/shlib/libc.so
4957 # func_win32_libid is a shell function defined in ltmain.sh
4958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959 lt_cv_file_magic_cmd='func_win32_libid'
4963 # Base MSYS/MinGW do not provide the 'file' command needed by
4964 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965 # unless we find 'file', for example because we are cross-compiling.
4966 if ( file / ) >/dev/null 2>&1; then
4967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968 lt_cv_file_magic_cmd='func_win32_libid'
4970 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971 lt_cv_file_magic_cmd='$OBJDUMP -f'
4976 # use the weaker test based on 'objdump'. See mingw*.
4977 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4978 lt_cv_file_magic_cmd='$OBJDUMP -f'
4981 darwin* | rhapsody*)
4982 lt_cv_deplibs_check_method=pass_all
4985 freebsd* | dragonfly*)
4986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4989 # Not sure whether the presence of OpenBSD here was a mistake.
4990 # Let's accept both of them until this is cleared up.
4991 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4992 lt_cv_file_magic_cmd=/usr/bin/file
4993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4997 lt_cv_deplibs_check_method=pass_all
5002 lt_cv_deplibs_check_method=pass_all
5005 hpux10.20* | hpux11*)
5006 lt_cv_file_magic_cmd=/usr/bin/file
5009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5013 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]'
5014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5028 irix5* | irix6* | nonstopux*)
5030 *-32|*"-32 ") libmagic=32-bit;;
5031 *-n32|*"-n32 ") libmagic=N32;;
5032 *-64|*"-64 ") libmagic=64-bit;;
5033 *) libmagic=never-match;;
5035 lt_cv_deplibs_check_method=pass_all
5038 # This must be Linux ELF.
5039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5040 lt_cv_deplibs_check_method=pass_all
5043 netbsd* | netbsdelf*-gnu)
5044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5053 lt_cv_file_magic_cmd=/usr/bin/file
5054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5058 lt_cv_deplibs_check_method=pass_all
5062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5069 osf3* | osf4* | osf5*)
5070 lt_cv_deplibs_check_method=pass_all
5074 lt_cv_deplibs_check_method=pass_all
5078 lt_cv_deplibs_check_method=pass_all
5081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5082 lt_cv_deplibs_check_method=pass_all
5086 case $host_vendor in
5088 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]'
5089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5092 lt_cv_deplibs_check_method=pass_all
5095 lt_cv_file_magic_cmd='/bin/file'
5096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5099 lt_cv_file_magic_cmd='/bin/file'
5100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5101 lt_cv_file_magic_test_file=/lib/libc.so
5104 lt_cv_deplibs_check_method=pass_all
5107 lt_cv_deplibs_check_method=pass_all
5113 lt_cv_deplibs_check_method=pass_all
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5120 file_magic_cmd=$lt_cv_file_magic_cmd
5121 deplibs_check_method=$lt_cv_deplibs_check_method
5122 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5135 if test -n "$ac_tool_prefix"; then
5136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}ar; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_AR+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5143 if test -n "$AR"; then
5144 ac_cv_prog_AR="$AR" # Let the user override the test.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_AR="${ac_tool_prefix}ar"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 if test -n "$AR"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5166 $as_echo "$AR" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5174 if test -z "$ac_cv_prog_AR"; then
5176 # Extract the first word of "ar", so it can be a program name with args.
5177 set dummy ar; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5183 if test -n "$ac_ct_AR"; then
5184 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_ac_ct_AR="ar"
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5204 if test -n "$ac_ct_AR"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5206 $as_echo "$ac_ct_AR" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5212 if test "x$ac_ct_AR" = x; then
5215 case $cross_compiling:$ac_tool_warned in
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219 ac_tool_warned=yes ;;
5227 test -z "$AR" && AR=ar
5228 test -z "$AR_FLAGS" && AR_FLAGS=cru
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}strip; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_STRIP+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5248 if test -n "$STRIP"; then
5249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 STRIP=$ac_cv_prog_STRIP
5269 if test -n "$STRIP"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5271 $as_echo "$STRIP" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$ac_cv_prog_STRIP"; then
5281 # Extract the first word of "strip", so it can be a program name with args.
5282 set dummy strip; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$ac_ct_STRIP"; then
5289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_STRIP="strip"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5309 if test -n "$ac_ct_STRIP"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5311 $as_echo "$ac_ct_STRIP" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5317 if test "x$ac_ct_STRIP" = x; then
5320 case $cross_compiling:$ac_tool_warned in
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5329 STRIP="$ac_cv_prog_STRIP"
5332 test -z "$STRIP" && STRIP=:
5339 if test -n "$ac_tool_prefix"; then
5340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5347 if test -n "$RANLIB"; then
5348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 RANLIB=$ac_cv_prog_RANLIB
5368 if test -n "$RANLIB"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5370 $as_echo "$RANLIB" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5378 if test -z "$ac_cv_prog_RANLIB"; then
5379 ac_ct_RANLIB=$RANLIB
5380 # Extract the first word of "ranlib", so it can be a program name with args.
5381 set dummy ranlib; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5387 if test -n "$ac_ct_RANLIB"; then
5388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_ac_ct_RANLIB="ranlib"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5408 if test -n "$ac_ct_RANLIB"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5410 $as_echo "$ac_ct_RANLIB" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5416 if test "x$ac_ct_RANLIB" = x; then
5419 case $cross_compiling:$ac_tool_warned in
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5425 RANLIB=$ac_ct_RANLIB
5428 RANLIB="$ac_cv_prog_RANLIB"
5431 test -z "$RANLIB" && RANLIB=:
5438 # Determine commands to create old-style static archives.
5439 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5440 old_postinstall_cmds='chmod 644 $oldlib'
5441 old_postuninstall_cmds=
5443 if test -n "$RANLIB"; then
5446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5452 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5488 # If no C compiler was specified, use CC.
5491 # If no C compiler flags were specified, use CFLAGS.
5492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5494 # Allow CC to be a program name with arguments.
5498 # Check for command to grab the raw symbol name followed by C symbol from nm.
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5500 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5501 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5505 # These are sane defaults that work on at least a few old systems.
5506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5508 # Character class describing NM global symbol codes.
5509 symcode='[BCDEGRST]'
5511 # Regexp to match symbols that can be accessed directly from C.
5512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5514 # Define system-specific variables.
5519 cygwin* | mingw* | pw32* | cegcc*)
5520 symcode='[ABCDGISTW]'
5523 if test "$host_cpu" = ia64; then
5524 symcode='[ABCDEGRST]'
5528 symcode='[BCDEGRST]'
5531 symcode='[BCDEGQRST]'
5542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5550 # If we're using GNU nm, then use its standard symbol codes.
5551 case `$NM -V 2>&1` in
5552 *GNU* | *'with BFD'*)
5553 symcode='[ABCDGIRSTW]' ;;
5556 # Transform an extracted symbol line into a proper C declaration.
5557 # Some systems (esp. on ia64) link data and code symbols differently,
5558 # so use this general approach.
5559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5561 # Transform an extracted symbol line into symbol name and symbol address
5562 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5563 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'"
5565 # Handle CRLF in mingw tool chain
5569 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5573 # Try without a prefix underscore, then with it.
5574 for ac_symprfx in "" "_"; do
5576 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5577 symxfrm="\\1 $ac_symprfx\\2 \\2"
5579 # Write the raw and C identifiers.
5580 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5581 # Fake it for dumpbin and say T for any non-static function
5582 # and D for any global variable.
5583 # Also find C++ and __fastcall symbols from MSVC++,
5584 # which start with @ or ?.
5585 lt_cv_sys_global_symbol_pipe="$AWK '"\
5586 " {last_section=section; section=\$ 3};"\
5587 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5588 " \$ 0!~/External *\|/{next};"\
5589 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5590 " {if(hide[section]) next};"\
5591 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5592 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5593 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5594 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5595 " ' prfx=^$ac_symprfx"
5597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5600 # Check to see that the pipe works correctly.
5604 cat > conftest.$ac_ext <<_LT_EOF
5609 void nm_test_func(void);
5610 void nm_test_func(void){}
5614 int main(){nm_test_var='a';nm_test_func();return(0);}
5617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5618 (eval $ac_compile) 2>&5
5620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5621 test $ac_status = 0; }; then
5622 # Now try to grab the symbols.
5624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5625 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628 test $ac_status = 0; } && test -s "$nlist"; then
5629 # Try sorting and uniquifying the output.
5630 if sort "$nlist" | uniq > "$nlist"T; then
5631 mv -f "$nlist"T "$nlist"
5636 # Make sure that we snagged all the symbols we need.
5637 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5638 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5639 cat <<_LT_EOF > conftest.$ac_ext
5645 # Now generate the symbol file.
5646 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5648 cat <<_LT_EOF >> conftest.$ac_ext
5650 /* The mapping between symbol names and symbols. */
5655 lt__PROGRAM__LTX_preloaded_symbols[] =
5657 { "@PROGRAM@", (void *) 0 },
5659 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5660 cat <<\_LT_EOF >> conftest.$ac_ext
5664 /* This works around a problem in FreeBSD linker */
5665 #ifdef FREEBSD_WORKAROUND
5666 static const void *lt_preloaded_setup() {
5667 return lt__PROGRAM__LTX_preloaded_symbols;
5675 # Now try linking the two files.
5676 mv conftest.$ac_objext conftstm.$ac_objext
5677 lt_save_LIBS="$LIBS"
5678 lt_save_CFLAGS="$CFLAGS"
5679 LIBS="conftstm.$ac_objext"
5680 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5682 (eval $ac_link) 2>&5
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5688 LIBS="$lt_save_LIBS"
5689 CFLAGS="$lt_save_CFLAGS"
5691 echo "cannot find nm_test_func in $nlist" >&5
5694 echo "cannot find nm_test_var in $nlist" >&5
5697 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5700 echo "$progname: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 rm -rf conftest* conftst*
5705 # Do not use the global_symbol_pipe unless it works.
5706 if test "$pipe_works" = yes; then
5709 lt_cv_sys_global_symbol_pipe=
5715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5716 lt_cv_sys_global_symbol_to_cdecl=
5718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5720 $as_echo "failed" >&6; }
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5723 $as_echo "ok" >&6; }
5748 # Check whether --enable-libtool-lock was given.
5749 if test "${enable_libtool_lock+set}" = set; then :
5750 enableval=$enable_libtool_lock;
5753 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5755 # Some flags need to be propagated to the compiler or linker for good
5759 # Find out which ABI we are using.
5760 echo 'int i;' > conftest.$ac_ext
5761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5762 (eval $ac_compile) 2>&5
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; }; then
5766 case `/usr/bin/file conftest.$ac_objext` in
5778 # Find out which ABI we are using.
5779 echo '#line 5779 "configure"' > conftest.$ac_ext
5780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5781 (eval $ac_compile) 2>&5
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5784 test $ac_status = 0; }; then
5785 if test "$lt_cv_prog_gnu_ld" = yes; then
5786 case `/usr/bin/file conftest.$ac_objext` in
5788 LD="${LD-ld} -melf32bsmip"
5791 LD="${LD-ld} -melf32bmipn32"
5794 LD="${LD-ld} -melf64bmip"
5798 case `/usr/bin/file conftest.$ac_objext` in
5814 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5815 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5816 # Find out which ABI we are using.
5817 echo 'int i;' > conftest.$ac_ext
5818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5819 (eval $ac_compile) 2>&5
5821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822 test $ac_status = 0; }; then
5823 case `/usr/bin/file conftest.o` in
5826 x86_64-*kfreebsd*-gnu)
5827 LD="${LD-ld} -m elf_i386_fbsd"
5830 LD="${LD-ld} -m elf_i386"
5832 ppc64-*linux*|powerpc64-*linux*)
5833 LD="${LD-ld} -m elf32ppclinux"
5836 LD="${LD-ld} -m elf_s390"
5839 LD="${LD-ld} -m elf32_sparc"
5845 x86_64-*kfreebsd*-gnu)
5846 LD="${LD-ld} -m elf_x86_64_fbsd"
5849 LD="${LD-ld} -m elf_x86_64"
5851 ppc*-*linux*|powerpc*-*linux*)
5852 LD="${LD-ld} -m elf64ppc"
5854 s390*-*linux*|s390*-*tpf*)
5855 LD="${LD-ld} -m elf64_s390"
5858 LD="${LD-ld} -m elf64_sparc"
5868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5869 SAVE_CFLAGS="$CFLAGS"
5870 CFLAGS="$CFLAGS -belf"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5872 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5873 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 lt_cv_cc_needs_belf=yes
5896 lt_cv_cc_needs_belf=no
5898 rm -f core conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5901 ac_cpp='$CPP $CPPFLAGS'
5902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5908 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5909 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5911 CFLAGS="$SAVE_CFLAGS"
5915 # Find out which ABI we are using.
5916 echo 'int i;' > conftest.$ac_ext
5917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5918 (eval $ac_compile) 2>&5
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }; then
5922 case `/usr/bin/file conftest.o` in
5924 case $lt_cv_prog_gnu_ld in
5925 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5927 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5939 need_locks="$enable_libtool_lock"
5943 rhapsody* | darwin*)
5944 if test -n "$ac_tool_prefix"; then
5945 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5946 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -n "$DSYMUTIL"; then
5953 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5973 if test -n "$DSYMUTIL"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5975 $as_echo "$DSYMUTIL" >&6; }
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5983 if test -z "$ac_cv_prog_DSYMUTIL"; then
5984 ac_ct_DSYMUTIL=$DSYMUTIL
5985 # Extract the first word of "dsymutil", so it can be a program name with args.
5986 set dummy dsymutil; ac_word=$2
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 if test -n "$ac_ct_DSYMUTIL"; then
5993 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6013 if test -n "$ac_ct_DSYMUTIL"; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6015 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6021 if test "x$ac_ct_DSYMUTIL" = x; then
6024 case $cross_compiling:$ac_tool_warned in
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028 ac_tool_warned=yes ;;
6030 DSYMUTIL=$ac_ct_DSYMUTIL
6033 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6036 if test -n "$ac_tool_prefix"; then
6037 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6038 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 $as_echo_n "checking for $ac_word... " >&6; }
6041 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if test -n "$NMEDIT"; then
6045 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 NMEDIT=$ac_cv_prog_NMEDIT
6065 if test -n "$NMEDIT"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6067 $as_echo "$NMEDIT" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6075 if test -z "$ac_cv_prog_NMEDIT"; then
6076 ac_ct_NMEDIT=$NMEDIT
6077 # Extract the first word of "nmedit", so it can be a program name with args.
6078 set dummy nmedit; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_NMEDIT"; then
6085 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6105 if test -n "$ac_ct_NMEDIT"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6107 $as_echo "$ac_ct_NMEDIT" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6113 if test "x$ac_ct_NMEDIT" = x; then
6116 case $cross_compiling:$ac_tool_warned in
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120 ac_tool_warned=yes ;;
6122 NMEDIT=$ac_ct_NMEDIT
6125 NMEDIT="$ac_cv_prog_NMEDIT"
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if test "${ac_cv_prog_LIPO+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$LIPO"; then
6137 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 LIPO=$ac_cv_prog_LIPO
6157 if test -n "$LIPO"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6159 $as_echo "$LIPO" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6167 if test -z "$ac_cv_prog_LIPO"; then
6169 # Extract the first word of "lipo", so it can be a program name with args.
6170 set dummy lipo; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$ac_ct_LIPO"; then
6177 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_LIPO="lipo"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6197 if test -n "$ac_ct_LIPO"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6199 $as_echo "$ac_ct_LIPO" >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6205 if test "x$ac_ct_LIPO" = x; then
6208 case $cross_compiling:$ac_tool_warned in
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212 ac_tool_warned=yes ;;
6217 LIPO="$ac_cv_prog_LIPO"
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}otool; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -n "$OTOOL"; then
6229 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 OTOOL=$ac_cv_prog_OTOOL
6249 if test -n "$OTOOL"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6251 $as_echo "$OTOOL" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6259 if test -z "$ac_cv_prog_OTOOL"; then
6261 # Extract the first word of "otool", so it can be a program name with args.
6262 set dummy otool; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6268 if test -n "$ac_ct_OTOOL"; then
6269 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_ac_ct_OTOOL="otool"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6289 if test -n "$ac_ct_OTOOL"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6291 $as_echo "$ac_ct_OTOOL" >&6; }
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6297 if test "x$ac_ct_OTOOL" = x; then
6300 case $cross_compiling:$ac_tool_warned in
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6309 OTOOL="$ac_cv_prog_OTOOL"
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$OTOOL64"; then
6321 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 OTOOL64=$ac_cv_prog_OTOOL64
6341 if test -n "$OTOOL64"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6343 $as_echo "$OTOOL64" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6351 if test -z "$ac_cv_prog_OTOOL64"; then
6352 ac_ct_OTOOL64=$OTOOL64
6353 # Extract the first word of "otool64", so it can be a program name with args.
6354 set dummy otool64; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$ac_ct_OTOOL64"; then
6361 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_ac_ct_OTOOL64="otool64"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6381 if test -n "$ac_ct_OTOOL64"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6383 $as_echo "$ac_ct_OTOOL64" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6389 if test "x$ac_ct_OTOOL64" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6398 OTOOL64=$ac_ct_OTOOL64
6401 OTOOL64="$ac_cv_prog_OTOOL64"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6431 $as_echo_n "checking for -single_module linker flag... " >&6; }
6432 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 lt_cv_apple_cc_single_mod=no
6436 if test -z "${LT_MULTI_MODULE}"; then
6437 # By default we will add the -single_module flag. You can override
6438 # by either setting the environment variable LT_MULTI_MODULE
6439 # non-empty at configure time, or by adding -multi_module to the
6441 rm -rf libconftest.dylib*
6442 echo "int foo(void){return 1;}" > conftest.c
6443 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6444 -dynamiclib -Wl,-single_module conftest.c" >&5
6445 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6446 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6448 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6449 lt_cv_apple_cc_single_mod=yes
6451 cat conftest.err >&5
6453 rm -rf libconftest.dylib*
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6458 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6460 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6461 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 lt_cv_ld_exported_symbols_list=no
6465 save_LDFLAGS=$LDFLAGS
6466 echo "_main" > conftest.sym
6467 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6479 if ac_fn_c_try_link "$LINENO"; then :
6480 lt_cv_ld_exported_symbols_list=yes
6482 lt_cv_ld_exported_symbols_list=no
6484 rm -f core conftest.err conftest.$ac_objext \
6485 conftest$ac_exeext conftest.$ac_ext
6486 LDFLAGS="$save_LDFLAGS"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6490 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6492 rhapsody* | darwin1.[012])
6493 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6495 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6496 darwin*) # darwin 5.x on
6497 # if running on 10.5 or later, the deployment target defaults
6498 # to the OS version, if on x86, and 10.4, the deployment
6499 # target defaults to 10.4. Don't you love it?
6500 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6501 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6502 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6506 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6510 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6511 _lt_dar_single_mod='$single_module'
6513 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6514 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6516 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6518 if test "$DSYMUTIL" != ":"; then
6519 _lt_dsymutil='~$DSYMUTIL $lib || :'
6527 ac_cpp='$CPP $CPPFLAGS'
6528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6532 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6533 # On Suns, sometimes $CPP names a directory.
6534 if test -n "$CPP" && test -d "$CPP"; then
6537 if test -z "$CPP"; then
6538 if test "${ac_cv_prog_CPP+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6541 # Double quotes because CPP needs to be expanded
6542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6545 for ac_c_preproc_warn_flag in '' yes
6547 # Use a header file that comes with gcc, so configuring glibc
6548 # with a fresh cross-compiler works.
6549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6550 # <limits.h> exists even on freestanding compilers.
6551 # On the NeXT, cc -E runs the code through the compiler's parser,
6552 # not just through cpp. "Syntax error" is here to catch this case.
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 # include <limits.h>
6558 # include <assert.h>
6562 if ac_fn_c_try_cpp "$LINENO"; then :
6565 # Broken: fails on valid input.
6568 rm -f conftest.err conftest.$ac_ext
6570 # OK, works on sane cases. Now check whether nonexistent headers
6571 # can be detected and how.
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 #include <ac_nonexistent.h>
6576 if ac_fn_c_try_cpp "$LINENO"; then :
6577 # Broken: success on invalid input.
6580 # Passes both tests.
6584 rm -f conftest.err conftest.$ac_ext
6587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6588 rm -f conftest.err conftest.$ac_ext
6589 if $ac_preproc_ok; then :
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6602 $as_echo "$CPP" >&6; }
6604 for ac_c_preproc_warn_flag in '' yes
6606 # Use a header file that comes with gcc, so configuring glibc
6607 # with a fresh cross-compiler works.
6608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6609 # <limits.h> exists even on freestanding compilers.
6610 # On the NeXT, cc -E runs the code through the compiler's parser,
6611 # not just through cpp. "Syntax error" is here to catch this case.
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 # include <limits.h>
6617 # include <assert.h>
6621 if ac_fn_c_try_cpp "$LINENO"; then :
6624 # Broken: fails on valid input.
6627 rm -f conftest.err conftest.$ac_ext
6629 # OK, works on sane cases. Now check whether nonexistent headers
6630 # can be detected and how.
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 #include <ac_nonexistent.h>
6635 if ac_fn_c_try_cpp "$LINENO"; then :
6636 # Broken: success on invalid input.
6639 # Passes both tests.
6643 rm -f conftest.err conftest.$ac_ext
6646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6647 rm -f conftest.err conftest.$ac_ext
6648 if $ac_preproc_ok; then :
6651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6653 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6654 See \`config.log' for more details." "$LINENO" 5; }
6658 ac_cpp='$CPP $CPPFLAGS'
6659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6665 $as_echo_n "checking for ANSI C header files... " >&6; }
6666 if test "${ac_cv_header_stdc+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 ac_cv_header_stdc=yes
6687 ac_cv_header_stdc=no
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 if test $ac_cv_header_stdc = yes; then
6692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6699 $EGREP "memchr" >/dev/null 2>&1; then :
6702 ac_cv_header_stdc=no
6708 if test $ac_cv_header_stdc = yes; then
6709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6716 $EGREP "free" >/dev/null 2>&1; then :
6719 ac_cv_header_stdc=no
6725 if test $ac_cv_header_stdc = yes; then
6726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6727 if test "$cross_compiling" = yes; then :
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6734 #if ((' ' & 0x0FF) == 0x020)
6735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6738 # define ISLOWER(c) \
6739 (('a' <= (c) && (c) <= 'i') \
6740 || ('j' <= (c) && (c) <= 'r') \
6741 || ('s' <= (c) && (c) <= 'z'))
6742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6750 for (i = 0; i < 256; i++)
6751 if (XOR (islower (i), ISLOWER (i))
6752 || toupper (i) != TOUPPER (i))
6757 if ac_fn_c_try_run "$LINENO"; then :
6760 ac_cv_header_stdc=no
6762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6763 conftest.$ac_objext conftest.beam conftest.$ac_ext
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6769 $as_echo "$ac_cv_header_stdc" >&6; }
6770 if test $ac_cv_header_stdc = yes; then
6772 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6776 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6778 inttypes.h stdint.h unistd.h
6780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6781 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6783 eval as_val=\$$as_ac_Header
6784 if test "x$as_val" = x""yes; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6794 for ac_header in dlfcn.h
6796 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6798 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_DLFCN_H 1
6810 enable_win32_dll=yes
6813 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}as; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_AS+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6822 if test -n "$AS"; then
6823 ac_cv_prog_AS="$AS" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_AS="${ac_tool_prefix}as"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 if test -n "$AS"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6845 $as_echo "$AS" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_AS"; then
6855 # Extract the first word of "as", so it can be a program name with args.
6856 set dummy as; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$ac_ct_AS"; then
6863 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_AS="as"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6883 if test -n "$ac_ct_AS"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6885 $as_echo "$ac_ct_AS" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_AS" = x; then
6894 case $cross_compiling:$ac_tool_warned in
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6914 if test -n "$DLLTOOL"; then
6915 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 DLLTOOL=$ac_cv_prog_DLLTOOL
6935 if test -n "$DLLTOOL"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6937 $as_echo "$DLLTOOL" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6945 if test -z "$ac_cv_prog_DLLTOOL"; then
6946 ac_ct_DLLTOOL=$DLLTOOL
6947 # Extract the first word of "dlltool", so it can be a program name with args.
6948 set dummy dlltool; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6952 $as_echo_n "(cached) " >&6
6954 if test -n "$ac_ct_DLLTOOL"; then
6955 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6975 if test -n "$ac_ct_DLLTOOL"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6977 $as_echo "$ac_ct_DLLTOOL" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6983 if test "x$ac_ct_DLLTOOL" = x; then
6986 case $cross_compiling:$ac_tool_warned in
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6992 DLLTOOL=$ac_ct_DLLTOOL
6995 DLLTOOL="$ac_cv_prog_DLLTOOL"
6998 if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7006 if test -n "$OBJDUMP"; then
7007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 OBJDUMP=$ac_cv_prog_OBJDUMP
7027 if test -n "$OBJDUMP"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7029 $as_echo "$OBJDUMP" >&6; }
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7037 if test -z "$ac_cv_prog_OBJDUMP"; then
7038 ac_ct_OBJDUMP=$OBJDUMP
7039 # Extract the first word of "objdump", so it can be a program name with args.
7040 set dummy objdump; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7046 if test -n "$ac_ct_OBJDUMP"; then
7047 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7067 if test -n "$ac_ct_OBJDUMP"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7069 $as_echo "$ac_ct_OBJDUMP" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7075 if test "x$ac_ct_OBJDUMP" = x; then
7078 case $cross_compiling:$ac_tool_warned in
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 ac_tool_warned=yes ;;
7084 OBJDUMP=$ac_ct_OBJDUMP
7087 OBJDUMP="$ac_cv_prog_OBJDUMP"
7093 test -z "$AS" && AS=as
7099 test -z "$DLLTOOL" && DLLTOOL=dlltool
7105 test -z "$OBJDUMP" && OBJDUMP=objdump
7117 # Check whether --enable-shared was given.
7118 if test "${enable_shared+set}" = set; then :
7119 enableval=$enable_shared; p=${PACKAGE-default}
7121 yes) enable_shared=yes ;;
7122 no) enable_shared=no ;;
7125 # Look at the argument we got. We use all the common list separators.
7126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7127 for pkg in $enableval; do
7129 if test "X$pkg" = "X$p"; then
7148 # Check whether --enable-static was given.
7149 if test "${enable_static+set}" = set; then :
7150 enableval=$enable_static; p=${PACKAGE-default}
7152 yes) enable_static=yes ;;
7153 no) enable_static=no ;;
7156 # Look at the argument we got. We use all the common list separators.
7157 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7158 for pkg in $enableval; do
7160 if test "X$pkg" = "X$p"; then
7180 # Check whether --with-pic was given.
7181 if test "${with_pic+set}" = set; then :
7182 withval=$with_pic; pic_mode="$withval"
7188 test -z "$pic_mode" && pic_mode=default
7196 # Check whether --enable-fast-install was given.
7197 if test "${enable_fast_install+set}" = set; then :
7198 enableval=$enable_fast_install; p=${PACKAGE-default}
7200 yes) enable_fast_install=yes ;;
7201 no) enable_fast_install=no ;;
7203 enable_fast_install=no
7204 # Look at the argument we got. We use all the common list separators.
7205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7206 for pkg in $enableval; do
7208 if test "X$pkg" = "X$p"; then
7209 enable_fast_install=yes
7216 enable_fast_install=yes
7229 # This can be used to rebuild libtool when needed
7230 LIBTOOL_DEPS="$ltmain"
7232 # Always use our own libtool.
7233 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7259 test -z "$LN_S" && LN_S="ln -s"
7274 if test -n "${ZSH_VERSION+set}" ; then
7275 setopt NO_GLOB_SUBST
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7279 $as_echo_n "checking for objdir... " >&6; }
7280 if test "${lt_cv_objdir+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7283 rm -f .libs 2>/dev/null
7284 mkdir .libs 2>/dev/null
7285 if test -d .libs; then
7288 # MS-DOS does not allow filenames that begin with a dot.
7291 rmdir .libs 2>/dev/null
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7294 $as_echo "$lt_cv_objdir" >&6; }
7295 objdir=$lt_cv_objdir
7301 cat >>confdefs.h <<_ACEOF
7302 #define LT_OBJDIR "$lt_cv_objdir/"
7323 # AIX sometimes has problems with the GCC collect2 program. For some
7324 # reason, if we set the COLLECT_NAMES environment variable, the problems
7325 # vanish in a puff of smoke.
7326 if test "X${COLLECT_NAMES+set}" != Xset; then
7328 export COLLECT_NAMES
7333 # Sed substitution that helps us do robust quoting. It backslashifies
7334 # metacharacters that are still active within double-quoted strings.
7335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7337 # Same as above, but do not quote variable references.
7338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7340 # Sed substitution to delay expansion of an escaped shell variable in a
7341 # double_quote_subst'ed string.
7342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7344 # Sed substitution to delay expansion of an escaped single quote.
7345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7347 # Sed substitution to avoid accidental globbing in evaled expressions
7348 no_glob_subst='s/\*/\\\*/g'
7352 can_build_shared=yes
7354 # All known linkers require a `.a' archive for static linking (except MSVC,
7355 # which needs '.lib').
7358 with_gnu_ld="$lt_cv_prog_gnu_ld"
7361 old_CFLAGS="$CFLAGS"
7363 # Set sane defaults for various variables
7364 test -z "$CC" && CC=cc
7365 test -z "$LTCC" && LTCC=$CC
7366 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7367 test -z "$LD" && LD=ld
7368 test -z "$ac_objext" && ac_objext=o
7370 for cc_temp in $compiler""; do
7372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7378 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7381 # Only perform the check for file, if the check method requires it
7382 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7383 case $deplibs_check_method in
7385 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7387 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7396 lt_save_MAGIC_CMD="$MAGIC_CMD"
7397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7399 for ac_dir in $ac_dummy; do
7401 test -z "$ac_dir" && ac_dir=.
7402 if test -f $ac_dir/${ac_tool_prefix}file; then
7403 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7404 if test -n "$file_magic_test_file"; then
7405 case $deplibs_check_method in
7407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7410 $EGREP "$file_magic_regex" > /dev/null; then
7415 *** Warning: the command libtool uses to detect shared libraries,
7416 *** $file_magic_cmd, produces output that libtool cannot recognize.
7417 *** The result is that libtool may fail to recognize shared libraries
7418 *** as such. This will affect the creation of libtool libraries that
7419 *** depend on shared libraries, but programs linked with such libtool
7420 *** libraries will work regardless of this problem. Nevertheless, you
7421 *** may want to report the problem to your system manager and/or to
7422 *** bug-libtool@gnu.org
7432 MAGIC_CMD="$lt_save_MAGIC_CMD"
7437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7438 if test -n "$MAGIC_CMD"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7440 $as_echo "$MAGIC_CMD" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7450 if test -z "$lt_cv_path_MAGIC_CMD"; then
7451 if test -n "$ac_tool_prefix"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7453 $as_echo_n "checking for file... " >&6; }
7454 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7459 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7462 lt_save_MAGIC_CMD="$MAGIC_CMD"
7463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7464 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7465 for ac_dir in $ac_dummy; do
7467 test -z "$ac_dir" && ac_dir=.
7468 if test -f $ac_dir/file; then
7469 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7470 if test -n "$file_magic_test_file"; then
7471 case $deplibs_check_method in
7473 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7475 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7476 $EGREP "$file_magic_regex" > /dev/null; then
7481 *** Warning: the command libtool uses to detect shared libraries,
7482 *** $file_magic_cmd, produces output that libtool cannot recognize.
7483 *** The result is that libtool may fail to recognize shared libraries
7484 *** as such. This will affect the creation of libtool libraries that
7485 *** depend on shared libraries, but programs linked with such libtool
7486 *** libraries will work regardless of this problem. Nevertheless, you
7487 *** may want to report the problem to your system manager and/or to
7488 *** bug-libtool@gnu.org
7498 MAGIC_CMD="$lt_save_MAGIC_CMD"
7503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7504 if test -n "$MAGIC_CMD"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7506 $as_echo "$MAGIC_CMD" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7522 # Use C for the default configuration in the libtool script
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532 # Source file extension for C test sources.
7535 # Object file extension for compiled C test sources.
7539 # Code to be used in simple compile tests
7540 lt_simple_compile_test_code="int some_variable = 0;"
7542 # Code to be used in simple link tests
7543 lt_simple_link_test_code='int main(){return(0);}'
7551 # If no C compiler was specified, use CC.
7554 # If no C compiler flags were specified, use CFLAGS.
7555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7557 # Allow CC to be a program name with arguments.
7560 # Save the default compiler, since it gets overwritten when the other
7561 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7562 compiler_DEFAULT=$CC
7564 # save warnings/boilerplate of simple test code
7565 ac_outfile=conftest.$ac_objext
7566 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7567 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7568 _lt_compiler_boilerplate=`cat conftest.err`
7571 ac_outfile=conftest.$ac_objext
7572 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7573 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7574 _lt_linker_boilerplate=`cat conftest.err`
7579 ## There is no encapsulation within the following macros, do not change
7580 ## the running order or otherwise move them around unless you know exactly
7581 ## what you are doing...
7582 if test -n "$compiler"; then
7584 lt_prog_compiler_no_builtin_flag=
7586 if test "$GCC" = yes; then
7587 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7590 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7591 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7594 lt_cv_prog_compiler_rtti_exceptions=no
7595 ac_outfile=conftest.$ac_objext
7596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7597 lt_compiler_flag="-fno-rtti -fno-exceptions"
7598 # Insert the option either (1) after the last *FLAGS variable, or
7599 # (2) before a word containing "conftest.", or (3) at the end.
7600 # Note that $ac_compile itself does not contain backslashes and begins
7601 # with a dollar sign (not a hyphen), so the echo should work correctly.
7602 # The option is referenced via a variable to avoid confusing sed.
7603 lt_compile=`echo "$ac_compile" | $SED \
7604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7606 -e 's:$: $lt_compiler_flag:'`
7607 (eval echo "\"\$as_me:7607: $lt_compile\"" >&5)
7608 (eval "$lt_compile" 2>conftest.err)
7610 cat conftest.err >&5
7611 echo "$as_me:7611: \$? = $ac_status" >&5
7612 if (exit $ac_status) && test -s "$ac_outfile"; then
7613 # The compiler can only warn and ignore the option if not recognized
7614 # So say no if there are warnings other than the usual output.
7615 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7618 lt_cv_prog_compiler_rtti_exceptions=yes
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7625 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7627 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7628 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7640 lt_prog_compiler_wl=
7641 lt_prog_compiler_pic=
7642 lt_prog_compiler_static=
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7645 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7647 if test "$GCC" = yes; then
7648 lt_prog_compiler_wl='-Wl,'
7649 lt_prog_compiler_static='-static'
7653 # All AIX code is PIC.
7654 if test "$host_cpu" = ia64; then
7655 # AIX 5 now supports IA64 processor
7656 lt_prog_compiler_static='-Bstatic'
7663 # see comment about AmigaOS4 .so support
7664 lt_prog_compiler_pic='-fPIC'
7667 # FIXME: we need at least 68020 code to build shared libraries, but
7668 # adding the `-m68020' flag to GCC prevents building anything better,
7670 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7675 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7676 # PIC is the default for these OSes.
7679 mingw* | cygwin* | pw32* | os2* | cegcc*)
7680 # This hack is so that the source file can tell whether it is being
7681 # built for inclusion in a dll (and should export symbols for example).
7682 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7683 # (--disable-auto-import) libraries
7684 lt_prog_compiler_pic='-DDLL_EXPORT'
7687 darwin* | rhapsody*)
7688 # PIC is the default on this platform
7689 # Common symbols not allowed in MH_DYLIB files
7690 lt_prog_compiler_pic='-fno-common'
7694 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7695 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7696 # sets the default TLS model and affects inlining.
7702 lt_prog_compiler_pic='-fPIC'
7708 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7709 # Instead, we relocate shared libraries at runtime.
7713 # Just because we use GCC doesn't mean we suddenly get shared libraries
7714 # on systems that don't support them.
7715 lt_prog_compiler_can_build_shared=no
7720 # QNX uses GNU C++, but need to define -shared option too, otherwise
7722 lt_prog_compiler_pic='-fPIC -shared'
7726 if test -d /usr/nec; then
7727 lt_prog_compiler_pic=-Kconform_pic
7732 lt_prog_compiler_pic='-fPIC'
7736 # PORTME Check for flag to pass linker flags through the system compiler.
7739 lt_prog_compiler_wl='-Wl,'
7740 if test "$host_cpu" = ia64; then
7741 # AIX 5 now supports IA64 processor
7742 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7748 mingw* | cygwin* | pw32* | os2* | cegcc*)
7749 # This hack is so that the source file can tell whether it is being
7750 # built for inclusion in a dll (and should export symbols for example).
7751 lt_prog_compiler_pic='-DDLL_EXPORT'
7754 hpux9* | hpux10* | hpux11*)
7755 lt_prog_compiler_wl='-Wl,'
7756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7763 lt_prog_compiler_pic='+Z'
7766 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7767 lt_prog_compiler_static='${wl}-a ${wl}archive'
7770 irix5* | irix6* | nonstopux*)
7771 lt_prog_compiler_wl='-Wl,'
7772 # PIC (with -KPIC) is the default.
7773 lt_prog_compiler_static='-non_shared'
7776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7777 case $cc_basename in
7778 # old Intel for x86_64 which still supported -KPIC.
7780 lt_prog_compiler_wl='-Wl,'
7781 lt_prog_compiler_pic='-KPIC'
7782 lt_prog_compiler_static='-static'
7784 # icc used to be incompatible with GCC.
7785 # ICC 10 doesn't accept -KPIC any more.
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-fPIC'
7789 lt_prog_compiler_static='-static'
7791 # Lahey Fortran 8.1.
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_pic='--shared'
7795 lt_prog_compiler_static='--static'
7797 pgcc* | pgf77* | pgf90* | pgf95*)
7798 # Portland Group compilers (*not* the Pentium gcc compiler,
7799 # which looks to be a dead project)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='-fpic'
7802 lt_prog_compiler_static='-Bstatic'
7805 lt_prog_compiler_wl='-Wl,'
7806 # All Alpha code is PIC.
7807 lt_prog_compiler_static='-non_shared'
7810 # IBM XL C 8.0/Fortran 10.1 on PPC
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-qpic'
7813 lt_prog_compiler_static='-qstaticlink'
7816 case `$CC -V 2>&1 | sed 5q` in
7819 lt_prog_compiler_pic='-KPIC'
7820 lt_prog_compiler_static='-Bstatic'
7821 lt_prog_compiler_wl='-Wl,'
7824 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7825 lt_prog_compiler_pic='-KPIC'
7826 lt_prog_compiler_static='-Bstatic'
7827 lt_prog_compiler_wl=''
7835 lt_prog_compiler_pic='-KPIC'
7836 lt_prog_compiler_static='-Bstatic'
7840 # QNX uses GNU C++, but need to define -shared option too, otherwise
7842 lt_prog_compiler_pic='-fPIC -shared'
7845 osf3* | osf4* | osf5*)
7846 lt_prog_compiler_wl='-Wl,'
7847 # All OSF/1 code is PIC.
7848 lt_prog_compiler_static='-non_shared'
7852 lt_prog_compiler_static='-non_shared'
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7858 case $cc_basename in
7860 lt_prog_compiler_wl='-Qoption ld ';;
7862 lt_prog_compiler_wl='-Wl,';;
7867 lt_prog_compiler_wl='-Qoption ld '
7868 lt_prog_compiler_pic='-PIC'
7869 lt_prog_compiler_static='-Bstatic'
7872 sysv4 | sysv4.2uw2* | sysv4.3*)
7873 lt_prog_compiler_wl='-Wl,'
7874 lt_prog_compiler_pic='-KPIC'
7875 lt_prog_compiler_static='-Bstatic'
7879 if test -d /usr/nec ;then
7880 lt_prog_compiler_pic='-Kconform_pic'
7881 lt_prog_compiler_static='-Bstatic'
7885 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_can_build_shared=no
7897 lt_prog_compiler_pic='-pic'
7898 lt_prog_compiler_static='-Bstatic'
7902 lt_prog_compiler_can_build_shared=no
7908 # For platforms which do not support PIC, -DPIC is meaningless:
7910 lt_prog_compiler_pic=
7913 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7917 $as_echo "$lt_prog_compiler_pic" >&6; }
7925 # Check to make sure the PIC flag actually works.
7927 if test -n "$lt_prog_compiler_pic"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7929 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7930 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7933 lt_cv_prog_compiler_pic_works=no
7934 ac_outfile=conftest.$ac_objext
7935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7936 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7937 # Insert the option either (1) after the last *FLAGS variable, or
7938 # (2) before a word containing "conftest.", or (3) at the end.
7939 # Note that $ac_compile itself does not contain backslashes and begins
7940 # with a dollar sign (not a hyphen), so the echo should work correctly.
7941 # The option is referenced via a variable to avoid confusing sed.
7942 lt_compile=`echo "$ac_compile" | $SED \
7943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945 -e 's:$: $lt_compiler_flag:'`
7946 (eval echo "\"\$as_me:7946: $lt_compile\"" >&5)
7947 (eval "$lt_compile" 2>conftest.err)
7949 cat conftest.err >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 if (exit $ac_status) && test -s "$ac_outfile"; then
7952 # The compiler can only warn and ignore the option if not recognized
7953 # So say no if there are warnings other than the usual output.
7954 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7957 lt_cv_prog_compiler_pic_works=yes
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7964 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7966 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7967 case $lt_prog_compiler_pic in
7969 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7972 lt_prog_compiler_pic=
7973 lt_prog_compiler_can_build_shared=no
7984 # Check to make sure the static flag actually works.
7986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7989 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7992 lt_cv_prog_compiler_static_works=no
7993 save_LDFLAGS="$LDFLAGS"
7994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7997 # The linker can only warn and ignore the option if not recognized
7998 # So say no if there are warnings
7999 if test -s conftest.err; then
8000 # Append any errors to the config.log.
8001 cat conftest.err 1>&5
8002 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8004 if diff conftest.exp conftest.er2 >/dev/null; then
8005 lt_cv_prog_compiler_static_works=yes
8008 lt_cv_prog_compiler_static_works=yes
8012 LDFLAGS="$save_LDFLAGS"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8018 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8021 lt_prog_compiler_static=
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8035 lt_cv_prog_compiler_c_o=no
8036 $RM -r conftest 2>/dev/null
8040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8042 lt_compiler_flag="-o out/conftest2.$ac_objext"
8043 # Insert the option either (1) after the last *FLAGS variable, or
8044 # (2) before a word containing "conftest.", or (3) at the end.
8045 # Note that $ac_compile itself does not contain backslashes and begins
8046 # with a dollar sign (not a hyphen), so the echo should work correctly.
8047 lt_compile=`echo "$ac_compile" | $SED \
8048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050 -e 's:$: $lt_compiler_flag:'`
8051 (eval echo "\"\$as_me:8051: $lt_compile\"" >&5)
8052 (eval "$lt_compile" 2>out/conftest.err)
8054 cat out/conftest.err >&5
8055 echo "$as_me:8055: \$? = $ac_status" >&5
8056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8058 # The compiler can only warn and ignore the option if not recognized
8059 # So say no if there are warnings
8060 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8063 lt_cv_prog_compiler_c_o=yes
8068 # SGI C++ compiler will create directory out/ii_files/ for
8069 # template instantiation
8070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8071 $RM out/* && rmdir out
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8087 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8088 $as_echo_n "(cached) " >&6
8090 lt_cv_prog_compiler_c_o=no
8091 $RM -r conftest 2>/dev/null
8095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097 lt_compiler_flag="-o out/conftest2.$ac_objext"
8098 # Insert the option either (1) after the last *FLAGS variable, or
8099 # (2) before a word containing "conftest.", or (3) at the end.
8100 # Note that $ac_compile itself does not contain backslashes and begins
8101 # with a dollar sign (not a hyphen), so the echo should work correctly.
8102 lt_compile=`echo "$ac_compile" | $SED \
8103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105 -e 's:$: $lt_compiler_flag:'`
8106 (eval echo "\"\$as_me:8106: $lt_compile\"" >&5)
8107 (eval "$lt_compile" 2>out/conftest.err)
8109 cat out/conftest.err >&5
8110 echo "$as_me:8110: \$? = $ac_status" >&5
8111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8113 # The compiler can only warn and ignore the option if not recognized
8114 # So say no if there are warnings
8115 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8118 lt_cv_prog_compiler_c_o=yes
8123 # SGI C++ compiler will create directory out/ii_files/ for
8124 # template instantiation
8125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8126 $RM out/* && rmdir out
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8138 hard_links="nottested"
8139 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8140 # do not overwrite the value of need_locks provided by the user
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8142 $as_echo_n "checking if we can lock with hard links... " >&6; }
8145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8147 ln conftest.a conftest.b 2>&5 || hard_links=no
8148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8150 $as_echo "$hard_links" >&6; }
8151 if test "$hard_links" = no; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8169 allow_undefined_flag=
8170 always_export_symbols=no
8172 archive_expsym_cmds=
8173 compiler_needs_object=no
8174 enable_shared_with_static_runtimes=no
8175 export_dynamic_flag_spec=
8176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8177 hardcode_automatic=no
8179 hardcode_direct_absolute=no
8180 hardcode_libdir_flag_spec=
8181 hardcode_libdir_flag_spec_ld=
8182 hardcode_libdir_separator=
8184 hardcode_shlibpath_var=unsupported
8186 link_all_deplibs=unknown
8189 old_archive_from_new_cmds=
8190 old_archive_from_expsyms_cmds=
8191 thread_safe_flag_spec=
8192 whole_archive_flag_spec=
8193 # include_expsyms should be a list of space-separated symbols to be *always*
8194 # included in the symbol list
8196 # exclude_expsyms can be an extended regexp of symbols to exclude
8197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8199 # as well as any symbol that contains `d'.
8200 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8202 # platforms (ab)use it in PIC code, but their linkers get confused if
8203 # the symbol is explicitly referenced. Since portable code cannot
8204 # rely on this symbol name, it's probably fine to never include it in
8205 # preloaded symbol tables.
8206 # Exclude shared library initialization/finalization symbols.
8207 extract_expsyms_cmds=
8210 cygwin* | mingw* | pw32* | cegcc*)
8211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8212 # When not using gcc, we currently assume that we are using
8213 # Microsoft Visual C++.
8214 if test "$GCC" != yes; then
8219 # we just hope/assume this is gcc and not c89 (= MSVC++)
8225 linux* | k*bsd*-gnu)
8231 if test "$with_gnu_ld" = yes; then
8232 # If archive_cmds runs LD, not CC, wlarc should be empty
8235 # Set some defaults for GNU ld with shared library support. These
8236 # are reset later if shared libraries are not supported. Putting them
8237 # here allows them to be overridden if necessary.
8238 runpath_var=LD_RUN_PATH
8239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8240 export_dynamic_flag_spec='${wl}--export-dynamic'
8241 # ancient GNU ld didn't support --whole-archive et. al.
8242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8243 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8245 whole_archive_flag_spec=
8247 supports_anon_versioning=no
8248 case `$LD -v 2>&1` in
8249 *GNU\ gold*) supports_anon_versioning=yes ;;
8250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8253 *\ 2.11.*) ;; # other 2.11 versions
8254 *) supports_anon_versioning=yes ;;
8257 # See if GNU ld supports shared libraries.
8260 # On AIX/PPC, the GNU linker is very broken
8261 if test "$host_cpu" != ia64; then
8265 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8266 *** to be unable to reliably create shared libraries on AIX.
8267 *** Therefore, libtool is disabling shared libraries support. If you
8268 *** really care for shared libraries, you may want to modify your PATH
8269 *** so that a non-GNU linker is found, and then restart.
8278 # see comment about AmigaOS4 .so support
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280 archive_expsym_cmds=''
8283 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)'
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 hardcode_minus_L=yes
8291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8292 allow_undefined_flag=unsupported
8293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8294 # support --undefined. This deserves some investigation. FIXME
8295 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 cygwin* | mingw* | pw32* | cegcc*)
8302 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8303 # as there is no search path for DLLs.
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 allow_undefined_flag=unsupported
8306 always_export_symbols=no
8307 enable_shared_with_static_runtimes=yes
8308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8310 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312 # If the export-symbols file already is a .def file (1st line
8313 # is EXPORTS), use it as is; otherwise, prepend...
8314 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8315 cp $export_symbols $output_objdir/$soname.def;
8317 echo EXPORTS > $output_objdir/$soname.def;
8318 cat $export_symbols >> $output_objdir/$soname.def;
8320 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8328 hardcode_shlibpath_var=no
8329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330 export_dynamic_flag_spec='${wl}-E'
8331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8332 # Instead, shared libraries are loaded at an image base (0x10000000 by
8333 # default) and relocated if they conflict, which is a slow very memory
8334 # consuming and fragmenting process. To avoid this, we pick a random,
8335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8338 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'
8341 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8343 if test "$host_os" = linux-dietlibc; then
8344 case $cc_basename in
8345 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8348 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8349 && test "$tmp_diet" = no
8352 tmp_sharedflag='-shared'
8353 case $cc_basename,$host_cpu in
8354 pgcc*) # Portland Group C compiler
8355 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'
8356 tmp_addflag=' $pic_flag'
8358 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8359 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'
8360 tmp_addflag=' $pic_flag -Mnomain' ;;
8361 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8362 tmp_addflag=' -i_dynamic' ;;
8363 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8364 tmp_addflag=' -i_dynamic -nofor_main' ;;
8365 ifc* | ifort*) # Intel Fortran compiler
8366 tmp_addflag=' -nofor_main' ;;
8367 lf95*) # Lahey Fortran 8.1
8368 whole_archive_flag_spec=
8369 tmp_sharedflag='--shared' ;;
8370 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8371 tmp_sharedflag='-qmkshrobj'
8374 case `$CC -V 2>&1 | sed 5q` in
8375 *Sun\ C*) # Sun C 5.9
8376 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'
8377 compiler_needs_object=yes
8378 tmp_sharedflag='-G' ;;
8379 *Sun\ F*) # Sun Fortran 8.3
8380 tmp_sharedflag='-G' ;;
8382 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8384 if test "x$supports_anon_versioning" = xyes; then
8385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8387 echo "local: *; };" >> $output_objdir/$libname.ver~
8388 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8391 case $cc_basename in
8393 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8394 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8395 hardcode_libdir_flag_spec=
8396 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8397 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8398 if test "x$supports_anon_versioning" = xyes; then
8399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8401 echo "local: *; };" >> $output_objdir/$libname.ver~
8402 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8411 netbsd* | netbsdelf*-gnu)
8412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8427 *** create shared libraries on Solaris systems. Therefore, libtool
8428 *** is disabling shared libraries support. We urge you to upgrade GNU
8429 *** binutils to release 2.9.1 or newer. Another option is to modify
8430 *** your PATH or compiler configuration so that the native linker is
8431 *** used, and then restart.
8434 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8443 case `$LD -v 2>&1` in
8444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8449 *** reliably create shared libraries on SCO systems. Therefore, libtool
8450 *** is disabling shared libraries support. We urge you to upgrade GNU
8451 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8452 *** your PATH or compiler configuration so that the native linker is
8453 *** used, and then restart.
8458 # For security reasons, it is highly recommended that you always
8459 # use absolute paths for naming shared libraries, and exclude the
8460 # DT_RUNPATH tag from executables and libraries. But doing so
8461 # requires that you compile everything twice, which is a pain.
8462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_shlibpath_var=no
8481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8490 if test "$ld_shlibs" = no; then
8492 hardcode_libdir_flag_spec=
8493 export_dynamic_flag_spec=
8494 whole_archive_flag_spec=
8497 # PORTME fill in a description of your system's linker (not GNU ld)
8500 allow_undefined_flag=unsupported
8501 always_export_symbols=yes
8502 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'
8503 # Note: this linker hardcodes the directories in LIBPATH if there
8504 # are no directories specified by -L.
8505 hardcode_minus_L=yes
8506 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8507 # Neither direct hardcoding nor static linking is supported with a
8509 hardcode_direct=unsupported
8514 if test "$host_cpu" = ia64; then
8515 # On IA64, the linker does run time linking by default, so we don't
8516 # have to do anything special.
8517 aix_use_runtimelinking=no
8518 exp_sym_flag='-Bexport'
8521 # If we're using GNU nm, then we don't want the "-C" option.
8522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8523 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8524 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'
8526 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'
8528 aix_use_runtimelinking=no
8530 # Test if we are trying to use run time linking or normal
8531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8532 # need to do runtime linking.
8533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8534 for ld_flag in $LDFLAGS; do
8535 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8536 aix_use_runtimelinking=yes
8543 exp_sym_flag='-bexport'
8544 no_entry_flag='-bnoentry'
8547 # When large executables or shared objects are built, AIX ld can
8548 # have problems creating the table of contents. If linking a library
8549 # or program results in "error TOC overflow" add -mminimal-toc to
8550 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8551 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8555 hardcode_direct_absolute=yes
8556 hardcode_libdir_separator=':'
8557 link_all_deplibs=yes
8558 file_list_spec='${wl}-f,'
8560 if test "$GCC" = yes; then
8561 case $host_os in aix4.[012]|aix4.[012].*)
8562 # We only want to do this on AIX 4.2 and lower, the check
8563 # below for broken collect2 doesn't work under 4.3+
8564 collect2name=`${CC} -print-prog-name=collect2`
8565 if test -f "$collect2name" &&
8566 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8568 # We have reworked collect2
8571 # We have old collect2
8572 hardcode_direct=unsupported
8573 # It fails to find uninstalled libraries when the uninstalled
8574 # path is not listed in the libpath. Setting hardcode_minus_L
8575 # to unsupported forces relinking
8576 hardcode_minus_L=yes
8577 hardcode_libdir_flag_spec='-L$libdir'
8578 hardcode_libdir_separator=
8582 shared_flag='-shared'
8583 if test "$aix_use_runtimelinking" = yes; then
8584 shared_flag="$shared_flag "'${wl}-G'
8589 if test "$host_cpu" = ia64; then
8590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8591 # chokes on -Wl,-G. The following line is correct:
8594 if test "$aix_use_runtimelinking" = yes; then
8595 shared_flag='${wl}-G'
8597 shared_flag='${wl}-bM:SRE'
8602 export_dynamic_flag_spec='${wl}-bexpall'
8603 # It seems that -bexpall does not export symbols beginning with
8604 # underscore (_), so it is better to generate a list of symbols to export.
8605 always_export_symbols=yes
8606 if test "$aix_use_runtimelinking" = yes; then
8607 # Warning - without using the other runtime loading flags (-brtl),
8608 # -berok will link without error, but may produce a broken library.
8609 allow_undefined_flag='-berok'
8610 # Determine the default libpath from the value encoded in an
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8623 if ac_fn_c_try_link "$LINENO"; then :
8625 lt_aix_libpath_sed='
8626 /Import File Strings/,/^$/ {
8632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633 # Check for a 64-bit object if we didn't find anything.
8634 if test -z "$aix_libpath"; then
8635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 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"
8645 if test "$host_cpu" = ia64; then
8646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8647 allow_undefined_flag="-z nodefs"
8648 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"
8650 # Determine the default libpath from the value encoded in an
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8663 if ac_fn_c_try_link "$LINENO"; then :
8665 lt_aix_libpath_sed='
8666 /Import File Strings/,/^$/ {
8672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8673 # Check for a 64-bit object if we didn't find anything.
8674 if test -z "$aix_libpath"; then
8675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8678 rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8683 # Warning - without using the other run time loading flags,
8684 # -berok will link without error, but may produce a broken library.
8685 no_undefined_flag=' ${wl}-bernotok'
8686 allow_undefined_flag=' ${wl}-berok'
8687 # Exported symbols can be pulled into shared objects from archives
8688 whole_archive_flag_spec='$convenience'
8689 archive_cmds_need_lc=yes
8690 # This is similar to how AIX traditionally builds its shared libraries.
8691 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'
8699 # see comment about AmigaOS4 .so support
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds=''
8704 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)'
8705 hardcode_libdir_flag_spec='-L$libdir'
8706 hardcode_minus_L=yes
8712 export_dynamic_flag_spec=-rdynamic
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # When not using gcc, we currently assume that we are using
8717 # Microsoft Visual C++.
8718 # hardcode_libdir_flag_spec is actually meaningless, as there is
8719 # no search path for DLLs.
8720 hardcode_libdir_flag_spec=' '
8721 allow_undefined_flag=unsupported
8722 # Tell ltmain to make .lib files, not .a files.
8724 # Tell ltmain to make .dll files, not .so files.
8726 # FIXME: Setting linknames here is a bad hack.
8727 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8728 # The linker will automatically build a .lib file if we build a DLL.
8729 old_archive_from_new_cmds='true'
8730 # FIXME: Should let the user specify the lib program.
8731 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8732 fix_srcfile_path='`cygpath -w "$srcfile"`'
8733 enable_shared_with_static_runtimes=yes
8736 darwin* | rhapsody*)
8739 archive_cmds_need_lc=no
8741 hardcode_automatic=yes
8742 hardcode_shlibpath_var=unsupported
8743 whole_archive_flag_spec=''
8744 link_all_deplibs=yes
8745 allow_undefined_flag="$_lt_dar_allow_undefined"
8746 case $cc_basename in
8747 ifort*) _lt_dar_can_shared=yes ;;
8748 *) _lt_dar_can_shared=$GCC ;;
8750 if test "$_lt_dar_can_shared" = "yes"; then
8751 output_verbose_link_cmd=echo
8752 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8753 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8754 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}"
8755 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}"
8764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765 hardcode_libdir_flag_spec='-L$libdir'
8766 hardcode_shlibpath_var=no
8773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8774 # support. Future versions do this automatically, but an explicit c++rt0.o
8775 # does not break anything, and helps significantly (at the cost of a little
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8779 hardcode_libdir_flag_spec='-R$libdir'
8781 hardcode_shlibpath_var=no
8784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_minus_L=yes
8789 hardcode_shlibpath_var=no
8792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8793 freebsd* | dragonfly*)
8794 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8795 hardcode_libdir_flag_spec='-R$libdir'
8797 hardcode_shlibpath_var=no
8801 if test "$GCC" = yes; then
8802 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'
8804 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'
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8810 # hardcode_minus_L: Not really in the search PATH,
8811 # but as the default location of the library.
8812 hardcode_minus_L=yes
8813 export_dynamic_flag_spec='${wl}-E'
8817 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8822 if test "$with_gnu_ld" = no; then
8823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824 hardcode_libdir_flag_spec_ld='+b $libdir'
8825 hardcode_libdir_separator=:
8827 hardcode_direct_absolute=yes
8828 export_dynamic_flag_spec='${wl}-E'
8829 # hardcode_minus_L: Not really in the search PATH,
8830 # but as the default location of the library.
8831 hardcode_minus_L=yes
8836 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8839 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8861 if test "$with_gnu_ld" = no; then
8862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8863 hardcode_libdir_separator=:
8868 hardcode_shlibpath_var=no
8872 hardcode_direct_absolute=yes
8873 export_dynamic_flag_spec='${wl}-E'
8875 # hardcode_minus_L: Not really in the search PATH,
8876 # but as the default location of the library.
8877 hardcode_minus_L=yes
8883 irix5* | irix6* | nonstopux*)
8884 if test "$GCC" = yes; then
8885 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'
8886 # Try to use the -exported_symbol ld option, if it does not
8887 # work, assume that -exports_file does not work either and
8888 # implicitly export all symbols.
8889 save_LDFLAGS="$LDFLAGS"
8890 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8895 if ac_fn_c_try_link "$LINENO"; then :
8896 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'
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 LDFLAGS="$save_LDFLAGS"
8903 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'
8904 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'
8906 archive_cmds_need_lc='no'
8907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908 hardcode_libdir_separator=:
8910 link_all_deplibs=yes
8913 netbsd* | netbsdelf*-gnu)
8914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8917 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8919 hardcode_libdir_flag_spec='-R$libdir'
8921 hardcode_shlibpath_var=no
8925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8928 hardcode_libdir_separator=:
8929 hardcode_shlibpath_var=no
8936 if test -f /usr/libexec/ld.so; then
8938 hardcode_shlibpath_var=no
8939 hardcode_direct_absolute=yes
8940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8942 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8944 export_dynamic_flag_spec='${wl}-E'
8947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_libdir_flag_spec='-R$libdir'
8952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 hardcode_minus_L=yes
8965 allow_undefined_flag=unsupported
8966 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'
8967 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8971 if test "$GCC" = yes; then
8972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973 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'
8975 allow_undefined_flag=' -expect_unresolved \*'
8976 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'
8978 archive_cmds_need_lc='no'
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 hardcode_libdir_separator=:
8983 osf4* | osf5*) # as osf3* with the addition of -msym flag
8984 if test "$GCC" = yes; then
8985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8986 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'
8987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989 allow_undefined_flag=' -expect_unresolved \*'
8990 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'
8991 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~
8992 $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'
8994 # Both c and cxx compiler support -rpath directly
8995 hardcode_libdir_flag_spec='-rpath $libdir'
8997 archive_cmds_need_lc='no'
8998 hardcode_libdir_separator=:
9002 no_undefined_flag=' -z defs'
9003 if test "$GCC" = yes; then
9005 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9009 case `$CC -V 2>&1` in
9012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9018 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9020 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9024 hardcode_libdir_flag_spec='-R$libdir'
9025 hardcode_shlibpath_var=no
9027 solaris2.[0-5] | solaris2.[0-5].*) ;;
9029 # The compiler driver will combine and reorder linker options,
9030 # but understands `-z linker_flag'. GCC discards it without `$wl',
9031 # but is careful enough not to reorder.
9032 # Supported since Solaris 2.6 (maybe 2.5.1?)
9033 if test "$GCC" = yes; then
9034 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9036 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9040 link_all_deplibs=yes
9044 if test "x$host_vendor" = xsequent; then
9045 # Use $CC to link under sequent, because it throws in some extra .o
9046 # files that make .init and .fini sections work.
9047 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9049 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_libdir_flag_spec='-L$libdir'
9053 hardcode_minus_L=yes
9054 hardcode_shlibpath_var=no
9058 case $host_vendor in
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_direct=yes # is this really true???
9064 ## LD is ld it makes a PLAMLIB
9065 ## CC just makes a GrossModule.
9066 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9067 reload_cmds='$CC -r -o $output$reload_objs'
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9075 runpath_var='LD_RUN_PATH'
9076 hardcode_shlibpath_var=no
9080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081 hardcode_shlibpath_var=no
9082 export_dynamic_flag_spec='-Bexport'
9086 if test -d /usr/nec; then
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_shlibpath_var=no
9089 runpath_var=LD_RUN_PATH
9090 hardcode_runpath_var=yes
9095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9096 no_undefined_flag='${wl}-z,text'
9097 archive_cmds_need_lc=no
9098 hardcode_shlibpath_var=no
9099 runpath_var='LD_RUN_PATH'
9101 if test "$GCC" = yes; then
9102 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9105 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 sysv5* | sco3.2v5* | sco5v6*)
9111 # Note: We can NOT use -z defs as we might desire, because we do not
9112 # link with -lc, and that would cause any symbols used from libc to
9113 # always be unresolved, which means just about no library would
9114 # ever link correctly. If we're not using GNU ld we use -z text
9115 # though, which does catch some bad symbols but isn't as heavy-handed
9117 no_undefined_flag='${wl}-z,text'
9118 allow_undefined_flag='${wl}-z,nodefs'
9119 archive_cmds_need_lc=no
9120 hardcode_shlibpath_var=no
9121 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9122 hardcode_libdir_separator=':'
9123 link_all_deplibs=yes
9124 export_dynamic_flag_spec='${wl}-Bexport'
9125 runpath_var='LD_RUN_PATH'
9127 if test "$GCC" = yes; then
9128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 hardcode_shlibpath_var=no
9147 if test x$host_vendor = xsni; then
9149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9150 export_dynamic_flag_spec='${wl}-Blargedynsym'
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9157 $as_echo "$ld_shlibs" >&6; }
9158 test "$ld_shlibs" = no && can_build_shared=no
9160 with_gnu_ld=$with_gnu_ld
9177 # Do we need to explicitly link libc?
9179 case "x$archive_cmds_need_lc" in
9181 # Assume -lc should be added
9182 archive_cmds_need_lc=yes
9184 if test "$enable_shared" = yes && test "$GCC" = yes; then
9185 case $archive_cmds in
9187 # FIXME: we may have to deal with multi-command sequences.
9190 # Test whether the compiler implicitly links with -lc since on some
9191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9192 # to ld, don't add -lc before -lgcc.
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9199 (eval $ac_compile) 2>&5
9201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9202 test $ac_status = 0; } 2>conftest.err; then
9205 libobjs=conftest.$ac_objext
9207 wl=$lt_prog_compiler_wl
9208 pic_flag=$lt_prog_compiler_pic
9214 lt_save_allow_undefined_flag=$allow_undefined_flag
9215 allow_undefined_flag=
9216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9220 test $ac_status = 0; }
9222 archive_cmds_need_lc=no
9224 archive_cmds_need_lc=yes
9226 allow_undefined_flag=$lt_save_allow_undefined_flag
9228 cat conftest.err 1>&5
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9232 $as_echo "$archive_cmds_need_lc" >&6; }
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9396 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9398 if test "$GCC" = yes; then
9400 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9401 *) lt_awk_arg="/^libraries:/" ;;
9403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9404 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9405 # if the path contains ";" then we assume it to be the separator
9406 # otherwise default to the standard path separator (i.e. ":") - it is
9407 # assumed that no part of a normal pathname contains ";" but that should
9408 # okay in the real world where ";" in dirpaths is itself problematic.
9409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9413 # Ok, now we have the path, separated by spaces, we can step through it
9414 # and add multilib dir if necessary.
9415 lt_tmp_lt_search_path_spec=
9416 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9417 for lt_sys_path in $lt_search_path_spec; do
9418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9421 test -d "$lt_sys_path" && \
9422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9425 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9426 BEGIN {RS=" "; FS="/|\n";} {
9429 for (lt_i = NF; lt_i > 0; lt_i--) {
9430 if ($lt_i != "" && $lt_i != ".") {
9431 if ($lt_i == "..") {
9434 if (lt_count == 0) {
9435 lt_foo="/" $lt_i lt_foo;
9442 if (lt_foo != "") { lt_freq[lt_foo]++; }
9443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9445 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9450 libname_spec='lib$name'
9458 shlibpath_overrides_runpath=unknown
9460 dynamic_linker="$host_os ld.so"
9461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9462 need_lib_prefix=unknown
9463 hardcode_into_libs=no
9465 # when you set need_version to no, make sure it does not cause -set_version
9466 # flags to be left without arguments
9467 need_version=unknown
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9473 shlibpath_var=LIBPATH
9475 # AIX 3 has no versioning support, so we append a major version to the name.
9476 soname_spec='${libname}${release}${shared_ext}$major'
9483 hardcode_into_libs=yes
9484 if test "$host_cpu" = ia64; then
9485 # AIX 5 supports IA64
9486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9487 shlibpath_var=LD_LIBRARY_PATH
9489 # With GCC up to 2.95.x, collect2 would create an import file
9490 # for dependence libraries. The import file would start with
9491 # the line `#! .'. This would cause the generated library to
9492 # depend on `.', always an invalid library. This was fixed in
9493 # development snapshots of GCC prior to 3.0.
9495 aix4 | aix4.[01] | aix4.[01].*)
9496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9498 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9506 # soname into executable. Probably we can add versioning support to
9507 # collect2, so additional links can be useful in future.
9508 if test "$aix_use_runtimelinking" = yes; then
9509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9510 # instead of lib<name>.a to let people know that these are not
9511 # typical AIX shared libraries.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 # We preserve .a as extension for shared libraries through AIX4.2
9515 # and later when we are not doing run time linking.
9516 library_names_spec='${libname}${release}.a $libname.a'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9519 shlibpath_var=LIBPATH
9526 # Since July 2007 AmigaOS4 officially supports .so libraries.
9527 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531 library_names_spec='$libname.ixlibrary $libname.a'
9532 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9533 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'
9539 library_names_spec='${libname}${shared_ext}'
9540 dynamic_linker="$host_os ld.so"
9541 shlibpath_var=LIBRARY_PATH
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9553 # the default ld.so.conf also contains /usr/contrib/lib and
9554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9555 # libtool to hard-code these into programs
9558 cygwin* | mingw* | pw32* | cegcc*)
9559 version_type=windows
9564 case $GCC,$host_os in
9565 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9566 library_names_spec='$libname.dll.a'
9567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9568 postinstall_cmds='base_file=`basename \${file}`~
9569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9570 dldir=$destdir/`dirname \$dlpath`~
9571 test -d \$dldir || mkdir -p \$dldir~
9572 $install_prog $dir/$dlname \$dldir/$dlname~
9573 chmod a+x \$dldir/$dlname~
9574 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9575 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9577 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9578 dlpath=$dir/\$dldll~
9580 shlibpath_overrides_runpath=yes
9584 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9585 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9586 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9589 # MinGW DLLs use traditional 'lib' prefix
9590 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9591 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9592 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9593 # It is most probably a Windows format PATH printed by
9594 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9595 # path with ; separators, and with drive letters. We can handle the
9596 # drive letters (cygwin fileutils understands them), so leave them,
9597 # especially as we might pass files found there to a mingw objdump,
9598 # which wouldn't understand a cygwinified path. Ahh.
9599 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9605 # pw32 DLLs use 'pw' prefix rather than 'lib'
9606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9612 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9615 dynamic_linker='Win32 ld.exe'
9616 # FIXME: first we should search . and the directory the executable is in
9620 darwin* | rhapsody*)
9621 dynamic_linker="$host_os dyld"
9625 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9626 soname_spec='${libname}${release}${major}$shared_ext'
9627 shlibpath_overrides_runpath=yes
9628 shlibpath_var=DYLD_LIBRARY_PATH
9629 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9631 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9632 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9648 freebsd* | dragonfly*)
9649 # DragonFly does not have aout. When/if they implement a new
9650 # versioning mechanism, adjust this.
9651 if test -x /usr/bin/objformat; then
9652 objformat=`/usr/bin/objformat`
9655 freebsd[123]*) objformat=aout ;;
9659 version_type=freebsd-$objformat
9660 case $version_type in
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9671 shlibpath_var=LD_LIBRARY_PATH
9674 shlibpath_overrides_runpath=yes
9676 freebsd3.[01]* | freebsdelf3.[01]*)
9677 shlibpath_overrides_runpath=yes
9678 hardcode_into_libs=yes
9680 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9681 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9682 shlibpath_overrides_runpath=no
9683 hardcode_into_libs=yes
9685 *) # from 4.6 on, and DragonFly
9686 shlibpath_overrides_runpath=yes
9687 hardcode_into_libs=yes
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 hardcode_into_libs=yes
9702 hpux9* | hpux10* | hpux11*)
9703 # Give a soname corresponding to the major version so that dld.sl refuses to
9704 # link against other versions.
9711 hardcode_into_libs=yes
9712 dynamic_linker="$host_os dld.so"
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 if test "X$HPUX_IA64_MODE" = X32; then
9718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9726 hardcode_into_libs=yes
9727 dynamic_linker="$host_os dld.sl"
9728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9737 dynamic_linker="$host_os dld.sl"
9738 shlibpath_var=SHLIB_PATH
9739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9745 postinstall_cmds='chmod 555 $lib'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=no
9757 hardcode_into_libs=yes
9760 irix5* | irix6* | nonstopux*)
9762 nonstopux*) version_type=nonstopux ;;
9764 if test "$lt_cv_prog_gnu_ld" = yes; then
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9775 irix5* | nonstopux*)
9779 case $LD in # libtool.m4 will add one of these switches to LD
9780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9781 libsuff= shlibsuff= libmagic=32-bit;;
9782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9783 libsuff=32 shlibsuff=N32 libmagic=N32;;
9784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9786 *) libsuff= shlibsuff= libmagic=never-match;;
9790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9791 shlibpath_overrides_runpath=no
9792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9794 hardcode_into_libs=yes
9797 # No shared lib support for Linux oldld, aout, or coff.
9798 linux*oldld* | linux*aout* | linux*coff*)
9802 # This must be Linux ELF.
9803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 # Some binutils ld are patched to set DT_RUNPATH
9813 save_LDFLAGS=$LDFLAGS
9815 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9816 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9828 if ac_fn_c_try_link "$LINENO"; then :
9829 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9830 shlibpath_overrides_runpath=yes
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LDFLAGS=$save_LDFLAGS
9838 # This implies no fast_install, which is unacceptable.
9839 # Some rework will be needed to allow for fast_install
9840 # before this can be enabled.
9841 hardcode_into_libs=yes
9843 # Append ld.so.conf contents to the search path
9844 if test -f /etc/ld.so.conf; then
9845 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' ' '`
9846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9849 # We used to test for /lib/ld.so.1 and disable shared libraries on
9850 # powerpc, because MkLinux only supported shared libraries with the
9851 # GNU dynamic linker. Since this was broken with cross compilers,
9852 # most powerpc-linux boxes support dynamic linking these days and
9853 # people can always --disable-shared, the test was removed, and we
9854 # assume the GNU/Linux dynamic linker is in use.
9855 dynamic_linker='GNU/Linux ld.so'
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 shlibpath_var=LD_LIBRARY_PATH
9865 shlibpath_overrides_runpath=no
9866 hardcode_into_libs=yes
9867 dynamic_linker='NetBSD ld.elf_so'
9874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9877 dynamic_linker='NetBSD (a.out) ld.so'
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 dynamic_linker='NetBSD ld.elf_so'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 shlibpath_overrides_runpath=yes
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 shlibpath_overrides_runpath=no
9903 hardcode_into_libs=yes
9904 dynamic_linker='ldqnx.so'
9909 sys_lib_dlsearch_path_spec="/usr/lib"
9911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9913 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9914 *) need_version=no ;;
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9921 openbsd2.[89] | openbsd2.[89].*)
9922 shlibpath_overrides_runpath=no
9925 shlibpath_overrides_runpath=yes
9929 shlibpath_overrides_runpath=yes
9934 libname_spec='$name'
9937 library_names_spec='$libname${shared_ext} $libname.a'
9938 dynamic_linker='OS/2 ld.exe'
9939 shlibpath_var=LIBPATH
9942 osf3* | osf4* | osf5*)
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9966 # ldd complains unless libraries are executable
9967 postinstall_cmds='chmod +x $lib'
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9973 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=yes
9976 if test "$with_gnu_ld" = yes; then
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 case $host_vendor in
9989 shlibpath_overrides_runpath=no
9991 runpath_var=LD_RUN_PATH
9999 shlibpath_overrides_runpath=no
10000 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10006 if test -d /usr/nec ;then
10008 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10009 soname_spec='$libname${shared_ext}.$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10014 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10015 version_type=freebsd-elf
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=yes
10022 hardcode_into_libs=yes
10023 if test "$with_gnu_ld" = yes; then
10024 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10026 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10033 sys_lib_dlsearch_path_spec='/usr/lib'
10037 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
10044 hardcode_into_libs=yes
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 shlibpath_var=LD_LIBRARY_PATH
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10059 $as_echo "$dynamic_linker" >&6; }
10060 test "$dynamic_linker" = no && can_build_shared=no
10062 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10063 if test "$GCC" = yes; then
10064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10067 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10068 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10070 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10071 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10161 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10163 if test -n "$hardcode_libdir_flag_spec" ||
10164 test -n "$runpath_var" ||
10165 test "X$hardcode_automatic" = "Xyes" ; then
10167 # We can hardcode non-existent directories.
10168 if test "$hardcode_direct" != no &&
10169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10170 # have to relink, otherwise we might link with an installed library
10171 # when we should be linking with a yet-to-be-installed one
10172 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10173 test "$hardcode_minus_L" != no; then
10174 # Linking always hardcodes the temporary library directory.
10175 hardcode_action=relink
10177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10178 hardcode_action=immediate
10181 # We cannot hardcode anything, or else we can only hardcode existing
10183 hardcode_action=unsupported
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10186 $as_echo "$hardcode_action" >&6; }
10188 if test "$hardcode_action" = relink ||
10189 test "$inherit_rpath" = yes; then
10190 # Fast installation is not supported
10191 enable_fast_install=no
10192 elif test "$shlibpath_overrides_runpath" = yes ||
10193 test "$enable_shared" = no; then
10194 # Fast installation is not necessary
10195 enable_fast_install=needless
10203 if test "x$enable_dlopen" != xyes; then
10204 enable_dlopen=unknown
10205 enable_dlopen_self=unknown
10206 enable_dlopen_self_static=unknown
10213 lt_cv_dlopen="load_add_on"
10215 lt_cv_dlopen_self=yes
10218 mingw* | pw32* | cegcc*)
10219 lt_cv_dlopen="LoadLibrary"
10224 lt_cv_dlopen="dlopen"
10229 # if libdl is installed we need to link against it
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10235 ac_check_lib_save_LIBS=$LIBS
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 ac_cv_lib_dl_dlopen=yes
10258 ac_cv_lib_dl_dlopen=no
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10265 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10266 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10270 lt_cv_dlopen="dyld"
10272 lt_cv_dlopen_self=yes
10279 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10280 if test "x$ac_cv_func_shl_load" = x""yes; then :
10281 lt_cv_dlopen="shl_load"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10284 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10285 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10288 ac_check_lib_save_LIBS=$LIBS
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10303 return shl_load ();
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_dld_shl_load=yes
10311 ac_cv_lib_dld_shl_load=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10318 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10319 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10322 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10323 if test "x$ac_cv_func_dlopen" = x""yes; then :
10324 lt_cv_dlopen="dlopen"
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10327 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10328 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10331 ac_check_lib_save_LIBS=$LIBS
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10351 if ac_fn_c_try_link "$LINENO"; then :
10352 ac_cv_lib_dl_dlopen=yes
10354 ac_cv_lib_dl_dlopen=no
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10361 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10362 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10366 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10368 $as_echo_n "(cached) " >&6
10370 ac_check_lib_save_LIBS=$LIBS
10371 LIBS="-lsvld $LIBS"
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10390 if ac_fn_c_try_link "$LINENO"; then :
10391 ac_cv_lib_svld_dlopen=yes
10393 ac_cv_lib_svld_dlopen=no
10395 rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
10397 LIBS=$ac_check_lib_save_LIBS
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10400 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10401 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10405 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10406 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10407 $as_echo_n "(cached) " >&6
10409 ac_check_lib_save_LIBS=$LIBS
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10424 return dld_link ();
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_dld_dld_link=yes
10432 ac_cv_lib_dld_dld_link=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10439 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10440 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10462 if test "x$lt_cv_dlopen" != xno; then
10468 case $lt_cv_dlopen in
10470 save_CPPFLAGS="$CPPFLAGS"
10471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10473 save_LDFLAGS="$LDFLAGS"
10474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10477 LIBS="$lt_cv_dlopen_libs $LIBS"
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10480 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10481 if test "${lt_cv_dlopen_self+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10484 if test "$cross_compiling" = yes; then :
10485 lt_cv_dlopen_self=cross
10487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488 lt_status=$lt_dlunknown
10489 cat > conftest.$ac_ext <<_LT_EOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10500 # define LT_DLGLOBAL RTLD_GLOBAL
10503 # define LT_DLGLOBAL DL_GLOBAL
10505 # define LT_DLGLOBAL 0
10509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510 find out it does not work in some platform. */
10511 #ifndef LT_DLLAZY_OR_NOW
10513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10516 # define LT_DLLAZY_OR_NOW DL_LAZY
10519 # define LT_DLLAZY_OR_NOW RTLD_NOW
10522 # define LT_DLLAZY_OR_NOW DL_NOW
10524 # define LT_DLLAZY_OR_NOW 0
10531 void fnord() { int i=42;}
10534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10535 int status = $lt_dlunknown;
10539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10540 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10541 /* dlclose (self); */
10549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10550 (eval $ac_link) 2>&5
10552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10553 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10554 (./conftest; exit; ) >&5 2>/dev/null
10556 case x$lt_status in
10557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10562 # compilation failed
10563 lt_cv_dlopen_self=no
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10571 $as_echo "$lt_cv_dlopen_self" >&6; }
10573 if test "x$lt_cv_dlopen_self" = xyes; then
10574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10576 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10577 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10578 $as_echo_n "(cached) " >&6
10580 if test "$cross_compiling" = yes; then :
10581 lt_cv_dlopen_self_static=cross
10583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10584 lt_status=$lt_dlunknown
10585 cat > conftest.$ac_ext <<_LT_EOF
10586 #line 10586 "configure"
10587 #include "confdefs.h"
10596 # define LT_DLGLOBAL RTLD_GLOBAL
10599 # define LT_DLGLOBAL DL_GLOBAL
10601 # define LT_DLGLOBAL 0
10605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10606 find out it does not work in some platform. */
10607 #ifndef LT_DLLAZY_OR_NOW
10609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10612 # define LT_DLLAZY_OR_NOW DL_LAZY
10615 # define LT_DLLAZY_OR_NOW RTLD_NOW
10618 # define LT_DLLAZY_OR_NOW DL_NOW
10620 # define LT_DLLAZY_OR_NOW 0
10627 void fnord() { int i=42;}
10630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10631 int status = $lt_dlunknown;
10635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10637 /* dlclose (self); */
10645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10646 (eval $ac_link) 2>&5
10648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10649 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10650 (./conftest; exit; ) >&5 2>/dev/null
10652 case x$lt_status in
10653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10655 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10658 # compilation failed
10659 lt_cv_dlopen_self_static=no
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10667 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10670 CPPFLAGS="$save_CPPFLAGS"
10671 LDFLAGS="$save_LDFLAGS"
10676 case $lt_cv_dlopen_self in
10677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10678 *) enable_dlopen_self=unknown ;;
10681 case $lt_cv_dlopen_self_static in
10682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10683 *) enable_dlopen_self_static=unknown ;;
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10706 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10707 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10709 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10711 $as_echo "yes" >&6; }
10713 # FIXME - insert some real tests, host_os isn't really good enough
10716 if test -n "$STRIP" ; then
10717 striplib="$STRIP -x"
10718 old_striplib="$STRIP -S"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10744 # Report which library types will actually be built
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10746 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10748 $as_echo "$can_build_shared" >&6; }
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10751 $as_echo_n "checking whether to build shared libraries... " >&6; }
10752 test "$can_build_shared" = "no" && enable_shared=no
10754 # On AIX, shared libraries and static libraries use the same namespace, and
10755 # are all built from PIC.
10758 test "$enable_shared" = yes && enable_static=no
10759 if test -n "$RANLIB"; then
10760 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10761 postinstall_cmds='$RANLIB $lib'
10766 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10767 test "$enable_shared" = yes && enable_static=no
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10772 $as_echo "$enable_shared" >&6; }
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10775 $as_echo_n "checking whether to build static libraries... " >&6; }
10776 # Make sure either enable_shared or enable_static is yes.
10777 test "$enable_shared" = yes || enable_static=yes
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10779 $as_echo "$enable_static" >&6; }
10786 ac_cpp='$CPP $CPPFLAGS'
10787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10805 ac_config_commands="$ac_config_commands libtool"
10810 # Only expand once:
10818 ### Needed information
10831 if test "x${have_win32}" = "xyes"; then
10833 HAVE_WIN32_FALSE='#'
10835 HAVE_WIN32_TRUE='#'
10839 if test "x${have_darwin}" = "xyes"; then
10841 HAVE_DARWIN_FALSE='#'
10843 HAVE_DARWIN_TRUE='#'
10849 ### Additional options to configure
10853 # Check whether --enable-debug was given.
10854 if test "${enable_debug+set}" = set; then :
10855 enableval=$enable_debug;
10856 if test "x${enableval}" = "xyes" ; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build in debug mode" >&5
10868 $as_echo_n "checking whether to build in debug mode... " >&6; }
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_debug}" >&5
10870 $as_echo "${want_debug}" >&6; }
10874 # Check whether --enable-mj2 was given.
10875 if test "${enable_mj2+set}" = set; then :
10876 enableval=$enable_mj2;
10877 if test "x${enableval}" = "xyes" ; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the MJ2 binaries" >&5
10889 $as_echo_n "checking whether to build the MJ2 binaries... " >&6; }
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_mj2}" >&5
10891 $as_echo "${want_mj2}" >&6; }
10893 if test "x${want_mj2}" = "xyes" ; then
10895 $as_echo "#define USE_MJ2 1" >>confdefs.h
10899 if test "x${want_mj2}" = "xyes"; then
10910 # Check whether --enable-jpwl was given.
10911 if test "${enable_jpwl+set}" = set; then :
10912 enableval=$enable_jpwl;
10913 if test "x${enableval}" = "xyes" ; then
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPWL library" >&5
10925 $as_echo_n "checking whether to build the JPWL library... " >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpwl}" >&5
10927 $as_echo "${want_jpwl}" >&6; }
10929 if test "x${want_jpwl}" = "xyes"; then
10931 WANT_JPWL_FALSE='#'
10940 # Check whether --enable-jpip was given.
10941 if test "${enable_jpip+set}" = set; then :
10942 enableval=$enable_jpip;
10943 if test "x${enableval}" = "xyes" ; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP library" >&5
10955 $as_echo_n "checking whether to build the JPIP library... " >&6; }
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip}" >&5
10957 $as_echo "${want_jpip}" >&6; }
10959 # Check whether --enable-jpip-server was given.
10960 if test "${enable_jpip_server+set}" = set; then :
10961 enableval=$enable_jpip_server;
10962 if test "x${enableval}" = "xyes" ; then
10963 want_jpip_server="yes"
10965 want_jpip_server="no"
10969 want_jpip_server="no"
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP server" >&5
10974 $as_echo_n "checking whether to build the JPIP server... " >&6; }
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip_server}" >&5
10976 $as_echo "${want_jpip_server}" >&6; }
10979 ### Checks for programs
10982 ac_cpp='$CPP $CPPFLAGS'
10983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986 if test -n "$ac_tool_prefix"; then
10987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 $as_echo_n "checking for $ac_word... " >&6; }
10991 if test "${ac_cv_prog_CC+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10994 if test -n "$CC"; then
10995 ac_cv_prog_CC="$CC" # Let the user override the test.
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 if test -n "$CC"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11017 $as_echo "$CC" >&6; }
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11025 if test -z "$ac_cv_prog_CC"; then
11027 # Extract the first word of "gcc", so it can be a program name with args.
11028 set dummy gcc; ac_word=$2
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030 $as_echo_n "checking for $ac_word... " >&6; }
11031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11034 if test -n "$ac_ct_CC"; then
11035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11044 ac_cv_prog_ac_ct_CC="gcc"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11055 if test -n "$ac_ct_CC"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11057 $as_echo "$ac_ct_CC" >&6; }
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11063 if test "x$ac_ct_CC" = x; then
11066 case $cross_compiling:$ac_tool_warned in
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11070 ac_tool_warned=yes ;;
11075 CC="$ac_cv_prog_CC"
11078 if test -z "$CC"; then
11079 if test -n "$ac_tool_prefix"; then
11080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11081 set dummy ${ac_tool_prefix}cc; ac_word=$2
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 $as_echo_n "checking for $ac_word... " >&6; }
11084 if test "${ac_cv_prog_CC+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11087 if test -n "$CC"; then
11088 ac_cv_prog_CC="$CC" # Let the user override the test.
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11097 ac_cv_prog_CC="${ac_tool_prefix}cc"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 if test -n "$CC"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11110 $as_echo "$CC" >&6; }
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11119 if test -z "$CC"; then
11120 # Extract the first word of "cc", so it can be a program name with args.
11121 set dummy cc; ac_word=$2
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123 $as_echo_n "checking for $ac_word... " >&6; }
11124 if test "${ac_cv_prog_CC+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11127 if test -n "$CC"; then
11128 ac_cv_prog_CC="$CC" # Let the user override the test.
11130 ac_prog_rejected=no
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11139 ac_prog_rejected=yes
11143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 if test $ac_prog_rejected = yes; then
11151 # We found a bogon in the path, so make sure we never use it.
11152 set dummy $ac_cv_prog_CC
11154 if test $# != 0; then
11155 # We chose a different compiler from the bogus one.
11156 # However, it has the same basename, so the bogon will be chosen
11157 # first if we set CC to just the basename; use the full file name.
11159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11165 if test -n "$CC"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11167 $as_echo "$CC" >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11175 if test -z "$CC"; then
11176 if test -n "$ac_tool_prefix"; then
11177 for ac_prog in cl.exe
11179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if test "${ac_cv_prog_CC+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11186 if test -n "$CC"; then
11187 ac_cv_prog_CC="$CC" # Let the user override the test.
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 if test -n "$CC"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11209 $as_echo "$CC" >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11216 test -n "$CC" && break
11219 if test -z "$CC"; then
11221 for ac_prog in cl.exe
11223 # Extract the first word of "$ac_prog", so it can be a program name with args.
11224 set dummy $ac_prog; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11230 if test -n "$ac_ct_CC"; then
11231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240 ac_cv_prog_ac_ct_CC="$ac_prog"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11251 if test -n "$ac_ct_CC"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11253 $as_echo "$ac_ct_CC" >&6; }
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11260 test -n "$ac_ct_CC" && break
11263 if test "x$ac_ct_CC" = x; then
11266 case $cross_compiling:$ac_tool_warned in
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270 ac_tool_warned=yes ;;
11279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11281 as_fn_error "no acceptable C compiler found in \$PATH
11282 See \`config.log' for more details." "$LINENO" 5; }
11284 # Provide some information about the compiler.
11285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11288 for ac_option in --version -v -V -qversion; do
11289 { { ac_try="$ac_compiler $ac_option >&5"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11295 $as_echo "$ac_try_echo"; } >&5
11296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11298 if test -s conftest.err; then
11300 ... rest of stderr output deleted ...
11301 10q' conftest.err >conftest.er1
11302 cat conftest.er1 >&5
11304 rm -f conftest.er1 conftest.err
11305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306 test $ac_status = 0; }
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11328 if ac_fn_c_try_compile "$LINENO"; then :
11329 ac_compiler_gnu=yes
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11339 if test $ac_compiler_gnu = yes; then
11344 ac_test_CFLAGS=${CFLAGS+set}
11345 ac_save_CFLAGS=$CFLAGS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11348 if test "${ac_cv_prog_cc_g+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11351 ac_save_c_werror_flag=$ac_c_werror_flag
11352 ac_c_werror_flag=yes
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11366 if ac_fn_c_try_compile "$LINENO"; then :
11367 ac_cv_prog_cc_g=yes
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11381 if ac_fn_c_try_compile "$LINENO"; then :
11384 ac_c_werror_flag=$ac_save_c_werror_flag
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11397 if ac_fn_c_try_compile "$LINENO"; then :
11398 ac_cv_prog_cc_g=yes
11400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 ac_c_werror_flag=$ac_save_c_werror_flag
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11408 $as_echo "$ac_cv_prog_cc_g" >&6; }
11409 if test "$ac_test_CFLAGS" = set; then
11410 CFLAGS=$ac_save_CFLAGS
11411 elif test $ac_cv_prog_cc_g = yes; then
11412 if test "$GCC" = yes; then
11418 if test "$GCC" = yes; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11429 ac_cv_prog_cc_c89=no
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11433 #include <stdarg.h>
11435 #include <sys/types.h>
11436 #include <sys/stat.h>
11437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11438 struct buf { int x; };
11439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11440 static char *e (p, i)
11446 static char *f (char * (*g) (char **, int), char **p, ...)
11451 s = g (p, va_arg (v,int));
11456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11457 function prototypes and stuff, but not '\xHH' hex character constants.
11458 These don't provoke an error unfortunately, instead are silently treated
11459 as 'x'. The following induces an error, until -std is added to get
11460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11461 array size at least. It's necessary to write '\x00'==0 to get something
11462 that's true only with -std. */
11463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11466 inside strings and character constants. */
11468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11470 int test (int i, double x);
11471 struct s1 {int (*f) (int a);};
11472 struct s2 {int (*f) (double a);};
11473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11487 CC="$ac_save_CC $ac_arg"
11488 if ac_fn_c_try_compile "$LINENO"; then :
11489 ac_cv_prog_cc_c89=$ac_arg
11491 rm -f core conftest.err conftest.$ac_objext
11492 test "x$ac_cv_prog_cc_c89" != "xno" && break
11494 rm -f conftest.$ac_ext
11499 case "x$ac_cv_prog_cc_c89" in
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11502 $as_echo "none needed" >&6; } ;;
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11505 $as_echo "unsupported" >&6; } ;;
11507 CC="$CC $ac_cv_prog_cc_c89"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11511 if test "x$ac_cv_prog_cc_c89" != xno; then :
11516 ac_cpp='$CPP $CPPFLAGS'
11517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11521 depcc="$CC" am_compiler_list=
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11524 $as_echo_n "checking dependency style of $depcc... " >&6; }
11525 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11529 # We make a subdir and do the tests there. Otherwise we can end up
11530 # making bogus files that we don't know about and never remove. For
11531 # instance it was reported that on HP-UX the gcc test will end up
11532 # making a dummy file named `D' -- because `-MD' means `put the output
11535 # Copy depcomp to subdir because otherwise we won't find it if we're
11536 # using a relative directory.
11537 cp "$am_depcomp" conftest.dir
11539 # We will build objects and dependencies in a subdirectory because
11540 # it helps to detect inapplicable dependency modes. For instance
11541 # both Tru64's cc and ICC support -MD to output dependencies as a
11542 # side effect of compilation, but ICC will put the dependencies in
11543 # the current directory while Tru64 will put them in the object
11547 am_cv_CC_dependencies_compiler_type=none
11548 if test "$am_compiler_list" = ""; then
11549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11551 am__universal=false
11552 case " $depcc " in #(
11553 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11556 for depmode in $am_compiler_list; do
11557 # Setup a source with many dependencies, because some compilers
11558 # like to wrap large dependency lists on column 80 (with \), and
11559 # we should not choose a depcomp mode which is confused by this.
11561 # We need to recreate these files for each test, as the compiler may
11562 # overwrite some of them when testing with obscure command lines.
11563 # This happens at least with the AIX C compiler.
11565 for i in 1 2 3 4 5 6; do
11566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11568 # Solaris 8's {/usr,}/bin/sh.
11569 touch sub/conftst$i.h
11571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11574 # mode. It turns out that the SunPro C++ compiler does not properly
11575 # handle `-M -o', and we need to detect this. Also, some Intel
11576 # versions had trouble with output in subdirs
11577 am__obj=sub/conftest.${OBJEXT-o}
11578 am__minus_obj="-o $am__obj"
11581 # This depmode causes a compiler race in universal mode.
11582 test "$am__universal" = false || continue
11585 # after this tag, mechanisms are not by side-effect, so they'll
11586 # only be used when explicitly requested
11587 if test "x$enable_dependency_tracking" = xyes; then
11593 msvisualcpp | msvcmsys)
11594 # This compiler won't grok `-c -o', but also, the minuso test has
11595 # not run yet. These depmodes are late enough in the game, and
11596 # so weak that their functioning should not be impacted.
11597 am__obj=conftest.${OBJEXT-o}
11602 if depmode=$depmode \
11603 source=sub/conftest.c object=$am__obj \
11604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11605 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11606 >/dev/null 2>conftest.err &&
11607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11609 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11611 # icc doesn't choke on unknown options, it will just issue warnings
11612 # or remarks (even with -Werror). So we grep stderr for any message
11613 # that says an option was ignored or not supported.
11614 # When given -MP, icc 7.0 and 7.1 complain thusly:
11615 # icc: Command line warning: ignoring option '-M'; no argument required
11616 # The diagnosis changed in icc 8.0:
11617 # icc: Command line remark: option '-MP' not supported
11618 if (grep 'ignoring option' conftest.err ||
11619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11620 am_cv_CC_dependencies_compiler_type=$depmode
11627 rm -rf conftest.dir
11629 am_cv_CC_dependencies_compiler_type=none
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11634 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11635 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11638 test "x$enable_dependency_tracking" != xno \
11639 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11640 am__fastdepCC_TRUE=
11641 am__fastdepCC_FALSE='#'
11643 am__fastdepCC_TRUE='#'
11644 am__fastdepCC_FALSE=
11657 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11658 if test -n "$ac_tool_prefix"; then
11659 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11660 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11666 case $PKG_CONFIG in
11668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11690 if test -n "$PKG_CONFIG"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11692 $as_echo "$PKG_CONFIG" >&6; }
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11700 if test -z "$ac_cv_path_PKG_CONFIG"; then
11701 ac_pt_PKG_CONFIG=$PKG_CONFIG
11702 # Extract the first word of "pkg-config", so it can be a program name with args.
11703 set dummy pkg-config; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11709 case $ac_pt_PKG_CONFIG in
11711 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11733 if test -n "$ac_pt_PKG_CONFIG"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11735 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11741 if test "x$ac_pt_PKG_CONFIG" = x; then
11744 case $cross_compiling:$ac_tool_warned in
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11748 ac_tool_warned=yes ;;
11750 PKG_CONFIG=$ac_pt_PKG_CONFIG
11753 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11757 if test -n "$PKG_CONFIG"; then
11758 _pkg_min_version=0.9.0
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11760 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11761 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763 $as_echo "yes" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11771 # Check whether pkg-config supports Requires.private
11772 if $PKG_CONFIG --atleast-pkgconfig-version 0.22 ; then
11773 pkgconfig_requires_private="Requires.private"
11775 pkgconfig_requires_private="Requires"
11784 # Check whether --enable-doc was given.
11785 if test "${enable_doc+set}" = set; then :
11786 enableval=$enable_doc;
11787 if test "x${enableval}" = "xyes" ; then
11788 opj_enable_doc="yes"
11790 opj_enable_doc="no"
11794 opj_enable_doc="yes"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
11799 $as_echo_n "checking whether to build documentation... " >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${opj_enable_doc}" >&5
11801 $as_echo "${opj_enable_doc}" >&6; }
11803 if test "x${opj_enable_doc}" = "xyes" ; then
11806 opj_doxygen="doxygen"
11809 # Check whether --with-doxygen was given.
11810 if test "${with_doxygen+set}" = set; then :
11811 withval=$with_doxygen;
11812 opj_doxygen=${withval}
11813 # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
11814 set dummy ${opj_doxygen}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if test "${ac_cv_prog_opj_have_doxygen+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11820 if test -n "$opj_have_doxygen"; then
11821 ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_prog_opj_have_doxygen="yes"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
11841 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
11842 if test -n "$opj_have_doxygen"; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
11844 $as_echo "$opj_have_doxygen" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847 $as_echo "no" >&6; }
11851 if test "x${opj_have_doxygen}" = "xno" ; then
11853 echo "The doxygen program you specified:"
11854 echo "${opj_doxygen}"
11855 echo "was not found. Please check the path and make sure "
11856 echo "the program exists and is executable."
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
11858 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
11862 # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
11863 set dummy ${opj_doxygen}; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_opj_have_doxygen+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11869 if test -n "$opj_have_doxygen"; then
11870 ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_opj_have_doxygen="yes"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
11890 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
11891 if test -n "$opj_have_doxygen"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
11893 $as_echo "$opj_have_doxygen" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11900 if test "x${opj_have_doxygen}" = "xno" ; then
11902 echo "The doxygen program was not found in your execute path."
11903 echo "You may have doxygen installed somewhere not covered by your path."
11905 echo "If this is the case make sure you have the packages installed, AND"
11906 echo "that the doxygen program is in your execute path (see your"
11907 echo "shell manual page on setting the \$PATH environment variable), OR"
11908 echo "alternatively, specify the program to use with --with-doxygen."
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
11910 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
11916 opj_have_doxygen="no"
11921 if ! test "x${opj_have_doxygen}" = "xyes" ; then
11922 opj_enable_doc="no"
11925 if test "x${opj_have_doxygen}" = "xyes"; then
11926 OPJ_BUILD_DOC_TRUE=
11927 OPJ_BUILD_DOC_FALSE='#'
11929 OPJ_BUILD_DOC_TRUE='#'
11930 OPJ_BUILD_DOC_FALSE=
11934 if test "x${opj_have_doxygen}" = "xyes"; then :
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11942 $as_echo_n "checking whether ln -s works... " >&6; }
11944 if test "$LN_S" = "ln -s"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11946 $as_echo "yes" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11949 $as_echo "no, using $LN_S" >&6; }
11954 ### Checks for libraries
11960 # Check whether --enable-png was given.
11961 if test "${enable_png+set}" = set; then :
11962 enableval=$enable_png;
11963 if test "x${enableval}" = "xyes" ; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
11975 $as_echo_n "checking whether to build with PNG support... " >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_png}" >&5
11977 $as_echo "${want_png}" >&6; }
11979 if test "x${want_png}" = "xyes" ; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
11984 $as_echo_n "checking for PNG... " >&6; }
11986 if test -n "$PNG_CFLAGS"; then
11987 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
11988 elif test -n "$PKG_CONFIG"; then
11989 if test -n "$PKG_CONFIG" && \
11990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
11991 ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
11993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994 test $ac_status = 0; }; then
11995 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15 zlib" 2>/dev/null`
12002 if test -n "$PNG_LIBS"; then
12003 pkg_cv_PNG_LIBS="$PNG_LIBS"
12004 elif test -n "$PKG_CONFIG"; then
12005 if test -n "$PKG_CONFIG" && \
12006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
12007 ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
12009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010 test $ac_status = 0; }; then
12011 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15 zlib" 2>/dev/null`
12021 if test $pkg_failed = yes; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12025 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12026 _pkg_short_errors_supported=yes
12028 _pkg_short_errors_supported=no
12030 if test $_pkg_short_errors_supported = yes; then
12031 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15 zlib" 2>&1`
12033 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15 zlib" 2>&1`
12035 # Put the nasty error message in config.log where it belongs
12036 echo "$PNG_PKG_ERRORS" >&5
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12042 $as_echo_n "checking for PNG... " >&6; }
12044 if test -n "$PNG_CFLAGS"; then
12045 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12046 elif test -n "$PKG_CONFIG"; then
12047 if test -n "$PKG_CONFIG" && \
12048 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12049 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052 test $ac_status = 0; }; then
12053 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
12060 if test -n "$PNG_LIBS"; then
12061 pkg_cv_PNG_LIBS="$PNG_LIBS"
12062 elif test -n "$PKG_CONFIG"; then
12063 if test -n "$PKG_CONFIG" && \
12064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12065 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068 test $ac_status = 0; }; then
12069 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
12079 if test $pkg_failed = yes; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12083 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12084 _pkg_short_errors_supported=yes
12086 _pkg_short_errors_supported=no
12088 if test $_pkg_short_errors_supported = yes; then
12089 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
12091 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
12093 # Put the nasty error message in config.log where it belongs
12094 echo "$PNG_PKG_ERRORS" >&5
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12100 $as_echo_n "checking for PNG... " >&6; }
12102 if test -n "$PNG_CFLAGS"; then
12103 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12104 elif test -n "$PKG_CONFIG"; then
12105 if test -n "$PKG_CONFIG" && \
12106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12107 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110 test $ac_status = 0; }; then
12111 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12118 if test -n "$PNG_LIBS"; then
12119 pkg_cv_PNG_LIBS="$PNG_LIBS"
12120 elif test -n "$PKG_CONFIG"; then
12121 if test -n "$PKG_CONFIG" && \
12122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12123 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12126 test $ac_status = 0; }; then
12127 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12137 if test $pkg_failed = yes; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12142 _pkg_short_errors_supported=yes
12144 _pkg_short_errors_supported=no
12146 if test $_pkg_short_errors_supported = yes; then
12147 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12149 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12151 # Put the nasty error message in config.log where it belongs
12152 echo "$PNG_PKG_ERRORS" >&5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12158 $as_echo_n "checking for PNG... " >&6; }
12160 if test -n "$PNG_CFLAGS"; then
12161 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12162 elif test -n "$PKG_CONFIG"; then
12163 if test -n "$PKG_CONFIG" && \
12164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12165 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12168 test $ac_status = 0; }; then
12169 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12176 if test -n "$PNG_LIBS"; then
12177 pkg_cv_PNG_LIBS="$PNG_LIBS"
12178 elif test -n "$PKG_CONFIG"; then
12179 if test -n "$PKG_CONFIG" && \
12180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12181 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12195 if test $pkg_failed = yes; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12200 _pkg_short_errors_supported=yes
12202 _pkg_short_errors_supported=no
12204 if test $_pkg_short_errors_supported = yes; then
12205 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12207 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12209 # Put the nasty error message in config.log where it belongs
12210 echo "$PNG_PKG_ERRORS" >&5
12213 elif test $pkg_failed = untried; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12218 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12219 PNG_LIBS=$pkg_cv_PNG_LIBS
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12225 elif test $pkg_failed = untried; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12232 $as_echo_n "checking for PNG... " >&6; }
12234 if test -n "$PNG_CFLAGS"; then
12235 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12236 elif test -n "$PKG_CONFIG"; then
12237 if test -n "$PKG_CONFIG" && \
12238 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12239 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242 test $ac_status = 0; }; then
12243 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12250 if test -n "$PNG_LIBS"; then
12251 pkg_cv_PNG_LIBS="$PNG_LIBS"
12252 elif test -n "$PKG_CONFIG"; then
12253 if test -n "$PKG_CONFIG" && \
12254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12255 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12258 test $ac_status = 0; }; then
12259 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12269 if test $pkg_failed = yes; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12273 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12274 _pkg_short_errors_supported=yes
12276 _pkg_short_errors_supported=no
12278 if test $_pkg_short_errors_supported = yes; then
12279 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12281 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12283 # Put the nasty error message in config.log where it belongs
12284 echo "$PNG_PKG_ERRORS" >&5
12287 elif test $pkg_failed = untried; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12292 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12293 PNG_LIBS=$pkg_cv_PNG_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12295 $as_echo "yes" >&6; }
12300 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12301 PNG_LIBS=$pkg_cv_PNG_LIBS
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303 $as_echo "yes" >&6; }
12307 elif test $pkg_failed = untried; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12314 $as_echo_n "checking for PNG... " >&6; }
12316 if test -n "$PNG_CFLAGS"; then
12317 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12318 elif test -n "$PKG_CONFIG"; then
12319 if test -n "$PKG_CONFIG" && \
12320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12321 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324 test $ac_status = 0; }; then
12325 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12332 if test -n "$PNG_LIBS"; then
12333 pkg_cv_PNG_LIBS="$PNG_LIBS"
12334 elif test -n "$PKG_CONFIG"; then
12335 if test -n "$PKG_CONFIG" && \
12336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12337 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; }; then
12341 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12351 if test $pkg_failed = yes; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353 $as_echo "no" >&6; }
12355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12356 _pkg_short_errors_supported=yes
12358 _pkg_short_errors_supported=no
12360 if test $_pkg_short_errors_supported = yes; then
12361 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12363 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12365 # Put the nasty error message in config.log where it belongs
12366 echo "$PNG_PKG_ERRORS" >&5
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12372 $as_echo_n "checking for PNG... " >&6; }
12374 if test -n "$PNG_CFLAGS"; then
12375 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12376 elif test -n "$PKG_CONFIG"; then
12377 if test -n "$PKG_CONFIG" && \
12378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12379 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12382 test $ac_status = 0; }; then
12383 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12390 if test -n "$PNG_LIBS"; then
12391 pkg_cv_PNG_LIBS="$PNG_LIBS"
12392 elif test -n "$PKG_CONFIG"; then
12393 if test -n "$PKG_CONFIG" && \
12394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12395 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398 test $ac_status = 0; }; then
12399 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12409 if test $pkg_failed = yes; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12414 _pkg_short_errors_supported=yes
12416 _pkg_short_errors_supported=no
12418 if test $_pkg_short_errors_supported = yes; then
12419 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12421 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12423 # Put the nasty error message in config.log where it belongs
12424 echo "$PNG_PKG_ERRORS" >&5
12427 elif test $pkg_failed = untried; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12432 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12433 PNG_LIBS=$pkg_cv_PNG_LIBS
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435 $as_echo "yes" >&6; }
12439 elif test $pkg_failed = untried; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12446 $as_echo_n "checking for PNG... " >&6; }
12448 if test -n "$PNG_CFLAGS"; then
12449 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12450 elif test -n "$PKG_CONFIG"; then
12451 if test -n "$PKG_CONFIG" && \
12452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12453 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; }; then
12457 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12464 if test -n "$PNG_LIBS"; then
12465 pkg_cv_PNG_LIBS="$PNG_LIBS"
12466 elif test -n "$PKG_CONFIG"; then
12467 if test -n "$PKG_CONFIG" && \
12468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12469 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472 test $ac_status = 0; }; then
12473 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12483 if test $pkg_failed = yes; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12488 _pkg_short_errors_supported=yes
12490 _pkg_short_errors_supported=no
12492 if test $_pkg_short_errors_supported = yes; then
12493 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12495 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12497 # Put the nasty error message in config.log where it belongs
12498 echo "$PNG_PKG_ERRORS" >&5
12501 elif test $pkg_failed = untried; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12506 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12507 PNG_LIBS=$pkg_cv_PNG_LIBS
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12514 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12515 PNG_LIBS=$pkg_cv_PNG_LIBS
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12517 $as_echo "yes" >&6; }
12522 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12523 PNG_LIBS=$pkg_cv_PNG_LIBS
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12525 $as_echo "yes" >&6; }
12529 elif test $pkg_failed = untried; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12536 $as_echo_n "checking for PNG... " >&6; }
12538 if test -n "$PNG_CFLAGS"; then
12539 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12540 elif test -n "$PKG_CONFIG"; then
12541 if test -n "$PKG_CONFIG" && \
12542 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12543 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546 test $ac_status = 0; }; then
12547 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
12554 if test -n "$PNG_LIBS"; then
12555 pkg_cv_PNG_LIBS="$PNG_LIBS"
12556 elif test -n "$PKG_CONFIG"; then
12557 if test -n "$PKG_CONFIG" && \
12558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
12559 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
12561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562 test $ac_status = 0; }; then
12563 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
12573 if test $pkg_failed = yes; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12578 _pkg_short_errors_supported=yes
12580 _pkg_short_errors_supported=no
12582 if test $_pkg_short_errors_supported = yes; then
12583 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
12585 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
12587 # Put the nasty error message in config.log where it belongs
12588 echo "$PNG_PKG_ERRORS" >&5
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12594 $as_echo_n "checking for PNG... " >&6; }
12596 if test -n "$PNG_CFLAGS"; then
12597 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12598 elif test -n "$PKG_CONFIG"; then
12599 if test -n "$PKG_CONFIG" && \
12600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12601 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604 test $ac_status = 0; }; then
12605 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12612 if test -n "$PNG_LIBS"; then
12613 pkg_cv_PNG_LIBS="$PNG_LIBS"
12614 elif test -n "$PKG_CONFIG"; then
12615 if test -n "$PKG_CONFIG" && \
12616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12617 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12620 test $ac_status = 0; }; then
12621 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12631 if test $pkg_failed = yes; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633 $as_echo "no" >&6; }
12635 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12636 _pkg_short_errors_supported=yes
12638 _pkg_short_errors_supported=no
12640 if test $_pkg_short_errors_supported = yes; then
12641 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12643 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12645 # Put the nasty error message in config.log where it belongs
12646 echo "$PNG_PKG_ERRORS" >&5
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12652 $as_echo_n "checking for PNG... " >&6; }
12654 if test -n "$PNG_CFLAGS"; then
12655 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12656 elif test -n "$PKG_CONFIG"; then
12657 if test -n "$PKG_CONFIG" && \
12658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12659 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662 test $ac_status = 0; }; then
12663 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12670 if test -n "$PNG_LIBS"; then
12671 pkg_cv_PNG_LIBS="$PNG_LIBS"
12672 elif test -n "$PKG_CONFIG"; then
12673 if test -n "$PKG_CONFIG" && \
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12675 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678 test $ac_status = 0; }; then
12679 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12689 if test $pkg_failed = yes; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12694 _pkg_short_errors_supported=yes
12696 _pkg_short_errors_supported=no
12698 if test $_pkg_short_errors_supported = yes; then
12699 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12701 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12703 # Put the nasty error message in config.log where it belongs
12704 echo "$PNG_PKG_ERRORS" >&5
12707 elif test $pkg_failed = untried; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12712 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12713 PNG_LIBS=$pkg_cv_PNG_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12719 elif test $pkg_failed = untried; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12726 $as_echo_n "checking for PNG... " >&6; }
12728 if test -n "$PNG_CFLAGS"; then
12729 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12730 elif test -n "$PKG_CONFIG"; then
12731 if test -n "$PKG_CONFIG" && \
12732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12733 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736 test $ac_status = 0; }; then
12737 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12744 if test -n "$PNG_LIBS"; then
12745 pkg_cv_PNG_LIBS="$PNG_LIBS"
12746 elif test -n "$PKG_CONFIG"; then
12747 if test -n "$PKG_CONFIG" && \
12748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12749 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752 test $ac_status = 0; }; then
12753 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12763 if test $pkg_failed = yes; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12767 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12768 _pkg_short_errors_supported=yes
12770 _pkg_short_errors_supported=no
12772 if test $_pkg_short_errors_supported = yes; then
12773 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12775 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12777 # Put the nasty error message in config.log where it belongs
12778 echo "$PNG_PKG_ERRORS" >&5
12781 elif test $pkg_failed = untried; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12786 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12787 PNG_LIBS=$pkg_cv_PNG_LIBS
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789 $as_echo "yes" >&6; }
12794 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12795 PNG_LIBS=$pkg_cv_PNG_LIBS
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797 $as_echo "yes" >&6; }
12801 elif test $pkg_failed = untried; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12808 $as_echo_n "checking for PNG... " >&6; }
12810 if test -n "$PNG_CFLAGS"; then
12811 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12812 elif test -n "$PKG_CONFIG"; then
12813 if test -n "$PKG_CONFIG" && \
12814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12815 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; }; then
12819 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
12826 if test -n "$PNG_LIBS"; then
12827 pkg_cv_PNG_LIBS="$PNG_LIBS"
12828 elif test -n "$PKG_CONFIG"; then
12829 if test -n "$PKG_CONFIG" && \
12830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
12831 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
12833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834 test $ac_status = 0; }; then
12835 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
12845 if test $pkg_failed = yes; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12850 _pkg_short_errors_supported=yes
12852 _pkg_short_errors_supported=no
12854 if test $_pkg_short_errors_supported = yes; then
12855 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
12857 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
12859 # Put the nasty error message in config.log where it belongs
12860 echo "$PNG_PKG_ERRORS" >&5
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12866 $as_echo_n "checking for PNG... " >&6; }
12868 if test -n "$PNG_CFLAGS"; then
12869 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12870 elif test -n "$PKG_CONFIG"; then
12871 if test -n "$PKG_CONFIG" && \
12872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12873 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; }; then
12877 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12884 if test -n "$PNG_LIBS"; then
12885 pkg_cv_PNG_LIBS="$PNG_LIBS"
12886 elif test -n "$PKG_CONFIG"; then
12887 if test -n "$PKG_CONFIG" && \
12888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12889 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12892 test $ac_status = 0; }; then
12893 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12903 if test $pkg_failed = yes; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12908 _pkg_short_errors_supported=yes
12910 _pkg_short_errors_supported=no
12912 if test $_pkg_short_errors_supported = yes; then
12913 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12915 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12917 # Put the nasty error message in config.log where it belongs
12918 echo "$PNG_PKG_ERRORS" >&5
12921 elif test $pkg_failed = untried; then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12926 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
12927 PNG_LIBS=$pkg_cv_PNG_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12933 elif test $pkg_failed = untried; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
12940 $as_echo_n "checking for PNG... " >&6; }
12942 if test -n "$PNG_CFLAGS"; then
12943 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
12944 elif test -n "$PKG_CONFIG"; then
12945 if test -n "$PKG_CONFIG" && \
12946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12947 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
12958 if test -n "$PNG_LIBS"; then
12959 pkg_cv_PNG_LIBS="$PNG_LIBS"
12960 elif test -n "$PKG_CONFIG"; then
12961 if test -n "$PKG_CONFIG" && \
12962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
12963 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
12965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966 test $ac_status = 0; }; then
12967 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
12977 if test $pkg_failed = yes; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12982 _pkg_short_errors_supported=yes
12984 _pkg_short_errors_supported=no
12986 if test $_pkg_short_errors_supported = yes; then
12987 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
12989 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
12991 # Put the nasty error message in config.log where it belongs
12992 echo "$PNG_PKG_ERRORS" >&5
12995 elif test $pkg_failed = untried; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
13000 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13001 PNG_LIBS=$pkg_cv_PNG_LIBS
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003 $as_echo "yes" >&6; }
13008 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13009 PNG_LIBS=$pkg_cv_PNG_LIBS
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13011 $as_echo "yes" >&6; }
13016 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13017 PNG_LIBS=$pkg_cv_PNG_LIBS
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019 $as_echo "yes" >&6; }
13024 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13025 PNG_LIBS=$pkg_cv_PNG_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13031 if ! test "x${have_libpng}" = "xyes" ; then
13037 __opj_have_dep="no"
13045 __opj_header=zlib.h
13047 __opj_func=zlibVersion
13048 __opj_have_dep="no"
13050 save_CPPFLAGS=${CPPFLAGS}
13051 save_LDFLAGS=${LDFLAGS}
13054 if test "x${__opj_prefix}" = "x" ; then
13055 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13056 LDFLAGS="${LDFLAGS} $Z_LIBS"
13058 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13059 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13060 LIBS="${LIBS} -l${__opj_lib}"
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 #include <${__opj_header}>
13078 if ac_fn_c_try_link "$LINENO"; then :
13079 __opj_have_dep="yes"
13081 __opj_have_dep="no"
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13086 CPPFLAGS=${save_CPPFLAGS}
13087 LDFLAGS=${save_LDFLAGS}
13090 if test "x${__opj_prefix}" = "x" ; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13092 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13095 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13098 $as_echo "${__opj_have_dep}" >&6; }
13100 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13101 if test "x${Z_CFLAGS}" = "x" ; then
13102 Z_CFLAGS="-I${__opj_prefix}/include"
13104 if test "x${Z_LIBS}" = "x" ; then
13105 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13109 if test "x${__opj_have_dep}" = "xyes"; then :
13110 __opj_have_dep="yes"
13112 __opj_have_dep="no"
13120 if ! test "x${__opj_have_dep}" = "xyes" ; then
13127 __opj_header=zlib.h
13129 __opj_func=zlibVersion
13130 __opj_have_dep="no"
13132 save_CPPFLAGS=${CPPFLAGS}
13133 save_LDFLAGS=${LDFLAGS}
13136 if test "x${__opj_prefix}" = "x" ; then
13137 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13138 LDFLAGS="${LDFLAGS} $Z_LIBS"
13140 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13141 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13142 LIBS="${LIBS} -l${__opj_lib}"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13148 #include <${__opj_header}>
13160 if ac_fn_c_try_link "$LINENO"; then :
13161 __opj_have_dep="yes"
13163 __opj_have_dep="no"
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13168 CPPFLAGS=${save_CPPFLAGS}
13169 LDFLAGS=${save_LDFLAGS}
13172 if test "x${__opj_prefix}" = "x" ; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13174 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13177 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13180 $as_echo "${__opj_have_dep}" >&6; }
13182 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13183 if test "x${Z_CFLAGS}" = "x" ; then
13184 Z_CFLAGS="-I${__opj_prefix}/include"
13186 if test "x${Z_LIBS}" = "x" ; then
13187 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13191 if test "x${__opj_have_dep}" = "xyes"; then :
13192 __opj_have_dep="yes"
13194 __opj_have_dep="no"
13203 if ! test "x${__opj_have_dep}" = "xyes" ; then
13209 __opj_prefix=/usr/local
13210 __opj_header=zlib.h
13212 __opj_func=zlibVersion
13213 __opj_have_dep="no"
13215 save_CPPFLAGS=${CPPFLAGS}
13216 save_LDFLAGS=${LDFLAGS}
13219 if test "x${__opj_prefix}" = "x" ; then
13220 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13221 LDFLAGS="${LDFLAGS} $Z_LIBS"
13223 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13224 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13225 LIBS="${LIBS} -l${__opj_lib}"
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13231 #include <${__opj_header}>
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 __opj_have_dep="yes"
13246 __opj_have_dep="no"
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13251 CPPFLAGS=${save_CPPFLAGS}
13252 LDFLAGS=${save_LDFLAGS}
13255 if test "x${__opj_prefix}" = "x" ; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13257 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13260 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13263 $as_echo "${__opj_have_dep}" >&6; }
13265 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13266 if test "x${Z_CFLAGS}" = "x" ; then
13267 Z_CFLAGS="-I${__opj_prefix}/include"
13269 if test "x${Z_LIBS}" = "x" ; then
13270 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13274 if test "x${__opj_have_dep}" = "xyes"; then :
13275 __opj_have_dep="yes"
13277 __opj_have_dep="no"
13286 if ! test "x${__opj_have_dep}" = "xyes" ; then
13292 __opj_prefix=/opt/local
13293 __opj_header=zlib.h
13295 __opj_func=zlibVersion
13296 __opj_have_dep="no"
13298 save_CPPFLAGS=${CPPFLAGS}
13299 save_LDFLAGS=${LDFLAGS}
13302 if test "x${__opj_prefix}" = "x" ; then
13303 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
13304 LDFLAGS="${LDFLAGS} $Z_LIBS"
13306 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13307 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13308 LIBS="${LIBS} -l${__opj_lib}"
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13314 #include <${__opj_header}>
13326 if ac_fn_c_try_link "$LINENO"; then :
13327 __opj_have_dep="yes"
13329 __opj_have_dep="no"
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13334 CPPFLAGS=${save_CPPFLAGS}
13335 LDFLAGS=${save_LDFLAGS}
13338 if test "x${__opj_prefix}" = "x" ; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
13340 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
13343 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13346 $as_echo "${__opj_have_dep}" >&6; }
13348 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13349 if test "x${Z_CFLAGS}" = "x" ; then
13350 Z_CFLAGS="-I${__opj_prefix}/include"
13352 if test "x${Z_LIBS}" = "x" ; then
13353 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13357 if test "x${__opj_have_dep}" = "xyes"; then :
13358 __opj_have_dep="yes"
13360 __opj_have_dep="no"
13374 if test "x${__opj_have_dep}" = "xyes"; then :
13380 __opj_have_dep="no"
13390 __opj_func=png_access_version_number
13391 __opj_have_dep="no"
13393 save_CPPFLAGS=${CPPFLAGS}
13394 save_LDFLAGS=${LDFLAGS}
13397 if test "x${__opj_prefix}" = "x" ; then
13398 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13399 LDFLAGS="${LDFLAGS} $PNG_LIBS"
13401 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13402 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13403 LIBS="${LIBS} -l${__opj_lib}"
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13409 #include <${__opj_header}>
13421 if ac_fn_c_try_link "$LINENO"; then :
13422 __opj_have_dep="yes"
13424 __opj_have_dep="no"
13426 rm -f core conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13429 CPPFLAGS=${save_CPPFLAGS}
13430 LDFLAGS=${save_LDFLAGS}
13433 if test "x${__opj_prefix}" = "x" ; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13435 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13438 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13441 $as_echo "${__opj_have_dep}" >&6; }
13443 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13444 if test "x${PNG_CFLAGS}" = "x" ; then
13445 PNG_CFLAGS="-I${__opj_prefix}/include"
13447 if test "x${PNG_LIBS}" = "x" ; then
13448 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13452 if test "x${__opj_have_dep}" = "xyes"; then :
13453 __opj_have_dep="yes"
13455 __opj_have_dep="no"
13463 if ! test "x${__opj_have_dep}" = "xyes" ; then
13472 __opj_func=png_access_version_number
13473 __opj_have_dep="no"
13475 save_CPPFLAGS=${CPPFLAGS}
13476 save_LDFLAGS=${LDFLAGS}
13479 if test "x${__opj_prefix}" = "x" ; then
13480 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13481 LDFLAGS="${LDFLAGS} $PNG_LIBS"
13483 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13484 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13485 LIBS="${LIBS} -l${__opj_lib}"
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 #include <${__opj_header}>
13503 if ac_fn_c_try_link "$LINENO"; then :
13504 __opj_have_dep="yes"
13506 __opj_have_dep="no"
13508 rm -f core conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
13511 CPPFLAGS=${save_CPPFLAGS}
13512 LDFLAGS=${save_LDFLAGS}
13515 if test "x${__opj_prefix}" = "x" ; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13517 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13520 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13523 $as_echo "${__opj_have_dep}" >&6; }
13525 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13526 if test "x${PNG_CFLAGS}" = "x" ; then
13527 PNG_CFLAGS="-I${__opj_prefix}/include"
13529 if test "x${PNG_LIBS}" = "x" ; then
13530 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13534 if test "x${__opj_have_dep}" = "xyes"; then :
13535 __opj_have_dep="yes"
13537 __opj_have_dep="no"
13546 if ! test "x${__opj_have_dep}" = "xyes" ; then
13552 __opj_prefix=/usr/local
13555 __opj_func=png_access_version_number
13556 __opj_have_dep="no"
13558 save_CPPFLAGS=${CPPFLAGS}
13559 save_LDFLAGS=${LDFLAGS}
13562 if test "x${__opj_prefix}" = "x" ; then
13563 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13564 LDFLAGS="${LDFLAGS} $PNG_LIBS"
13566 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13567 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13568 LIBS="${LIBS} -l${__opj_lib}"
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13574 #include <${__opj_header}>
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 __opj_have_dep="yes"
13589 __opj_have_dep="no"
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13594 CPPFLAGS=${save_CPPFLAGS}
13595 LDFLAGS=${save_LDFLAGS}
13598 if test "x${__opj_prefix}" = "x" ; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13600 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13603 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13606 $as_echo "${__opj_have_dep}" >&6; }
13608 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13609 if test "x${PNG_CFLAGS}" = "x" ; then
13610 PNG_CFLAGS="-I${__opj_prefix}/include"
13612 if test "x${PNG_LIBS}" = "x" ; then
13613 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13617 if test "x${__opj_have_dep}" = "xyes"; then :
13618 __opj_have_dep="yes"
13620 __opj_have_dep="no"
13629 if ! test "x${__opj_have_dep}" = "xyes" ; then
13635 __opj_prefix=/opt/local
13638 __opj_func=png_access_version_number
13639 __opj_have_dep="no"
13641 save_CPPFLAGS=${CPPFLAGS}
13642 save_LDFLAGS=${LDFLAGS}
13645 if test "x${__opj_prefix}" = "x" ; then
13646 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
13647 LDFLAGS="${LDFLAGS} $PNG_LIBS"
13649 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13650 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13651 LIBS="${LIBS} -l${__opj_lib}"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 #include <${__opj_header}>
13669 if ac_fn_c_try_link "$LINENO"; then :
13670 __opj_have_dep="yes"
13672 __opj_have_dep="no"
13674 rm -f core conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13677 CPPFLAGS=${save_CPPFLAGS}
13678 LDFLAGS=${save_LDFLAGS}
13681 if test "x${__opj_prefix}" = "x" ; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
13683 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
13686 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13689 $as_echo "${__opj_have_dep}" >&6; }
13691 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13692 if test "x${PNG_CFLAGS}" = "x" ; then
13693 PNG_CFLAGS="-I${__opj_prefix}/include"
13695 if test "x${PNG_LIBS}" = "x" ; then
13696 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13700 if test "x${__opj_have_dep}" = "xyes"; then :
13701 __opj_have_dep="yes"
13703 __opj_have_dep="no"
13717 if test "x${__opj_have_dep}" = "xyes"; then :
13720 PNG_CFLAGS="${PNG_CFLAGS} ${Z_CFLAGS}"
13721 PNG_LIBS="${PNG_LIBS} ${Z_LIBS}"
13741 if test "x${have_libpng}" = "xno" ; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&5
13743 $as_echo "$as_me: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG is available" >&5
13749 $as_echo_n "checking whether PNG is available... " >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libpng}" >&5
13751 $as_echo "${have_libpng}" >&6; }
13753 if test "x${have_libpng}" = "xyes" ; then
13755 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
13759 if test x${have_libpng} = "xyes"; then
13761 with_libpng_FALSE='#'
13763 with_libpng_TRUE='#'
13772 # Check whether --enable-tiff was given.
13773 if test "${enable_tiff+set}" = set; then :
13774 enableval=$enable_tiff;
13775 if test "x${enableval}" = "xyes" ; then
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
13787 $as_echo_n "checking whether to build with TIFF support... " >&6; }
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_tiff}" >&5
13789 $as_echo "${want_tiff}" >&6; }
13791 if test "x${want_tiff}" = "xyes" ; then
13797 __opj_have_dep="no"
13805 __opj_header=tiff.h
13807 __opj_func=TIFFOpen
13808 __opj_have_dep="no"
13810 save_CPPFLAGS=${CPPFLAGS}
13811 save_LDFLAGS=${LDFLAGS}
13814 if test "x${__opj_prefix}" = "x" ; then
13815 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
13816 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
13818 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13819 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13820 LIBS="${LIBS} -l${__opj_lib}"
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13826 #include <${__opj_header}>
13838 if ac_fn_c_try_link "$LINENO"; then :
13839 __opj_have_dep="yes"
13841 __opj_have_dep="no"
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13846 CPPFLAGS=${save_CPPFLAGS}
13847 LDFLAGS=${save_LDFLAGS}
13850 if test "x${__opj_prefix}" = "x" ; then
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
13852 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
13855 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13858 $as_echo "${__opj_have_dep}" >&6; }
13860 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13861 if test "x${TIFF_CFLAGS}" = "x" ; then
13862 TIFF_CFLAGS="-I${__opj_prefix}/include"
13864 if test "x${TIFF_LIBS}" = "x" ; then
13865 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13869 if test "x${__opj_have_dep}" = "xyes"; then :
13870 __opj_have_dep="yes"
13872 __opj_have_dep="no"
13880 if ! test "x${__opj_have_dep}" = "xyes" ; then
13887 __opj_header=tiff.h
13889 __opj_func=TIFFOpen
13890 __opj_have_dep="no"
13892 save_CPPFLAGS=${CPPFLAGS}
13893 save_LDFLAGS=${LDFLAGS}
13896 if test "x${__opj_prefix}" = "x" ; then
13897 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
13898 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
13900 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13901 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13902 LIBS="${LIBS} -l${__opj_lib}"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13908 #include <${__opj_header}>
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 __opj_have_dep="yes"
13923 __opj_have_dep="no"
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13928 CPPFLAGS=${save_CPPFLAGS}
13929 LDFLAGS=${save_LDFLAGS}
13932 if test "x${__opj_prefix}" = "x" ; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
13934 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
13937 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
13940 $as_echo "${__opj_have_dep}" >&6; }
13942 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
13943 if test "x${TIFF_CFLAGS}" = "x" ; then
13944 TIFF_CFLAGS="-I${__opj_prefix}/include"
13946 if test "x${TIFF_LIBS}" = "x" ; then
13947 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
13951 if test "x${__opj_have_dep}" = "xyes"; then :
13952 __opj_have_dep="yes"
13954 __opj_have_dep="no"
13963 if ! test "x${__opj_have_dep}" = "xyes" ; then
13969 __opj_prefix=/usr/local
13970 __opj_header=tiff.h
13972 __opj_func=TIFFOpen
13973 __opj_have_dep="no"
13975 save_CPPFLAGS=${CPPFLAGS}
13976 save_LDFLAGS=${LDFLAGS}
13979 if test "x${__opj_prefix}" = "x" ; then
13980 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
13981 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
13983 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
13984 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
13985 LIBS="${LIBS} -l${__opj_lib}"
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13991 #include <${__opj_header}>
14003 if ac_fn_c_try_link "$LINENO"; then :
14004 __opj_have_dep="yes"
14006 __opj_have_dep="no"
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14011 CPPFLAGS=${save_CPPFLAGS}
14012 LDFLAGS=${save_LDFLAGS}
14015 if test "x${__opj_prefix}" = "x" ; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
14017 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
14020 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14023 $as_echo "${__opj_have_dep}" >&6; }
14025 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14026 if test "x${TIFF_CFLAGS}" = "x" ; then
14027 TIFF_CFLAGS="-I${__opj_prefix}/include"
14029 if test "x${TIFF_LIBS}" = "x" ; then
14030 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14034 if test "x${__opj_have_dep}" = "xyes"; then :
14035 __opj_have_dep="yes"
14037 __opj_have_dep="no"
14046 if ! test "x${__opj_have_dep}" = "xyes" ; then
14052 __opj_prefix=/opt/local
14053 __opj_header=tiff.h
14055 __opj_func=TIFFOpen
14056 __opj_have_dep="no"
14058 save_CPPFLAGS=${CPPFLAGS}
14059 save_LDFLAGS=${LDFLAGS}
14062 if test "x${__opj_prefix}" = "x" ; then
14063 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
14064 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
14066 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14067 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14068 LIBS="${LIBS} -l${__opj_lib}"
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14074 #include <${__opj_header}>
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 __opj_have_dep="yes"
14089 __opj_have_dep="no"
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14094 CPPFLAGS=${save_CPPFLAGS}
14095 LDFLAGS=${save_LDFLAGS}
14098 if test "x${__opj_prefix}" = "x" ; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
14100 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
14103 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14106 $as_echo "${__opj_have_dep}" >&6; }
14108 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14109 if test "x${TIFF_CFLAGS}" = "x" ; then
14110 TIFF_CFLAGS="-I${__opj_prefix}/include"
14112 if test "x${TIFF_LIBS}" = "x" ; then
14113 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14117 if test "x${__opj_have_dep}" = "xyes"; then :
14118 __opj_have_dep="yes"
14120 __opj_have_dep="no"
14134 if test "x${__opj_have_dep}" = "xyes"; then :
14144 if test "x${have_libtiff}" = "xno" ; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&5
14146 $as_echo "$as_me: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF is available" >&5
14151 $as_echo_n "checking whether TIFF is available... " >&6; }
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libtiff}" >&5
14153 $as_echo "${have_libtiff}" >&6; }
14155 if test "x${have_libtiff}" = "xyes" ; then
14157 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
14161 if test "x${have_libtiff}" = "xyes"; then
14163 with_libtiff_FALSE='#'
14165 with_libtiff_TRUE='#'
14166 with_libtiff_FALSE=
14175 # Check whether --enable-lcms2 was given.
14176 if test "${enable_lcms2+set}" = set; then :
14177 enableval=$enable_lcms2;
14178 if test "x${enableval}" = "xyes" ; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-2 support" >&5
14190 $as_echo_n "checking whether to build with LCMS-2 support... " >&6; }
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms2}" >&5
14192 $as_echo "${want_lcms2}" >&6; }
14194 if test "x${want_lcms2}" = "xyes" ; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
14198 $as_echo_n "checking for LCMS2... " >&6; }
14200 if test -n "$LCMS2_CFLAGS"; then
14201 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
14202 elif test -n "$PKG_CONFIG"; then
14203 if test -n "$PKG_CONFIG" && \
14204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
14205 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
14207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208 test $ac_status = 0; }; then
14209 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
14216 if test -n "$LCMS2_LIBS"; then
14217 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
14218 elif test -n "$PKG_CONFIG"; then
14219 if test -n "$PKG_CONFIG" && \
14220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
14221 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
14223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14224 test $ac_status = 0; }; then
14225 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
14235 if test $pkg_failed = yes; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14240 _pkg_short_errors_supported=yes
14242 _pkg_short_errors_supported=no
14244 if test $_pkg_short_errors_supported = yes; then
14245 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1`
14247 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1`
14249 # Put the nasty error message in config.log where it belongs
14250 echo "$LCMS2_PKG_ERRORS" >&5
14253 elif test $pkg_failed = untried; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14255 $as_echo "no" >&6; }
14258 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
14259 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14261 $as_echo "yes" >&6; }
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-2 is available" >&5
14267 $as_echo_n "checking whether LCMS-2 is available... " >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms2}" >&5
14269 $as_echo "${have_lcms2}" >&6; }
14271 if test "x${have_lcms2}" = "xyes" ; then
14273 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
14275 lcms_output="lcms version 2.x"
14280 # Check whether --enable-lcms1 was given.
14281 if test "${enable_lcms1+set}" = set; then :
14282 enableval=$enable_lcms1;
14283 if test "x${enableval}" = "xyes" ; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-1 support" >&5
14295 $as_echo_n "checking whether to build with LCMS-1 support... " >&6; }
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms1}" >&5
14297 $as_echo "${want_lcms1}" >&6; }
14299 if test "x${have_lcms2}" = "xno" ; then
14301 if test "x${want_lcms1}" = "xyes" ; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
14305 $as_echo_n "checking for LCMS1... " >&6; }
14307 if test -n "$LCMS1_CFLAGS"; then
14308 pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
14309 elif test -n "$PKG_CONFIG"; then
14310 if test -n "$PKG_CONFIG" && \
14311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
14312 ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
14314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14315 test $ac_status = 0; }; then
14316 pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms1" 2>/dev/null`
14323 if test -n "$LCMS1_LIBS"; then
14324 pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
14325 elif test -n "$PKG_CONFIG"; then
14326 if test -n "$PKG_CONFIG" && \
14327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
14328 ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; }; then
14332 pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms1" 2>/dev/null`
14342 if test $pkg_failed = yes; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344 $as_echo "no" >&6; }
14346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14347 _pkg_short_errors_supported=yes
14349 _pkg_short_errors_supported=no
14351 if test $_pkg_short_errors_supported = yes; then
14352 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms1" 2>&1`
14354 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms1" 2>&1`
14356 # Put the nasty error message in config.log where it belongs
14357 echo "$LCMS1_PKG_ERRORS" >&5
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
14362 $as_echo_n "checking for LCMS1... " >&6; }
14364 if test -n "$LCMS1_CFLAGS"; then
14365 pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
14366 elif test -n "$PKG_CONFIG"; then
14367 if test -n "$PKG_CONFIG" && \
14368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14369 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14372 test $ac_status = 0; }; then
14373 pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
14380 if test -n "$LCMS1_LIBS"; then
14381 pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
14382 elif test -n "$PKG_CONFIG"; then
14383 if test -n "$PKG_CONFIG" && \
14384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14385 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14388 test $ac_status = 0; }; then
14389 pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
14399 if test $pkg_failed = yes; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14404 _pkg_short_errors_supported=yes
14406 _pkg_short_errors_supported=no
14408 if test $_pkg_short_errors_supported = yes; then
14409 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
14411 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
14413 # Put the nasty error message in config.log where it belongs
14414 echo "$LCMS1_PKG_ERRORS" >&5
14417 elif test $pkg_failed = untried; then
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14422 LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
14423 LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14425 $as_echo "yes" >&6; }
14428 elif test $pkg_failed = untried; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
14434 $as_echo_n "checking for LCMS1... " >&6; }
14436 if test -n "$LCMS1_CFLAGS"; then
14437 pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
14438 elif test -n "$PKG_CONFIG"; then
14439 if test -n "$PKG_CONFIG" && \
14440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14441 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444 test $ac_status = 0; }; then
14445 pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
14452 if test -n "$LCMS1_LIBS"; then
14453 pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
14454 elif test -n "$PKG_CONFIG"; then
14455 if test -n "$PKG_CONFIG" && \
14456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
14457 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
14459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460 test $ac_status = 0; }; then
14461 pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
14471 if test $pkg_failed = yes; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14475 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14476 _pkg_short_errors_supported=yes
14478 _pkg_short_errors_supported=no
14480 if test $_pkg_short_errors_supported = yes; then
14481 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
14483 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
14485 # Put the nasty error message in config.log where it belongs
14486 echo "$LCMS1_PKG_ERRORS" >&5
14489 elif test $pkg_failed = untried; then
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14494 LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
14495 LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14501 LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
14502 LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14504 $as_echo "yes" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-1 is available" >&5
14510 $as_echo_n "checking whether LCMS-1 is available... " >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms1}" >&5
14512 $as_echo "${have_lcms1}" >&6; }
14514 if test "x${have_lcms1}" = "xyes" ; then
14516 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
14518 lcms_output="lcms version 1.x"
14525 if test "x${want_jpip_server}" = "xyes" ; then
14527 if test "x${have_win32}" = "xno" ; then
14529 SAVE_CFLAGS=${CFLAGS}
14530 CFLAGS="${CFLAGS} -pthread"
14532 LIBS="${LIBS} -pthread"
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14536 #include <pthread.h>
14543 id = pthread_self();
14549 if ac_fn_c_try_link "$LINENO"; then :
14554 rm -f core conftest.err conftest.$ac_objext \
14555 conftest$ac_exeext conftest.$ac_ext
14556 CFLAGS=${SAVE_CFLAGS}
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Pthread library is available" >&5
14560 $as_echo_n "checking whether Pthread library is available... " >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_pthread}" >&5
14562 $as_echo "${have_pthread}" >&6; }
14564 if ! test "x${have_pthread}" = "xyes" ; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&5
14566 $as_echo "$as_me: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&2;}
14567 want_jpip_server="no"
14569 THREAD_CFLAGS="-pthread"
14570 THREAD_LIBS="-pthread"
14574 THREAD_LIBS="-lws2_32"
14586 if test "x${want_jpip_server}" = "xyes" ; then
14593 __opj_have_dep="no"
14601 __opj_header=fcgi_stdio.h
14603 __opj_func=FCGI_Accept
14604 __opj_have_dep="no"
14606 save_CPPFLAGS=${CPPFLAGS}
14607 save_LDFLAGS=${LDFLAGS}
14610 if test "x${__opj_prefix}" = "x" ; then
14611 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14612 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14614 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14615 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14616 LIBS="${LIBS} -l${__opj_lib}"
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14622 #include <${__opj_header}>
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 __opj_have_dep="yes"
14637 __opj_have_dep="no"
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14642 CPPFLAGS=${save_CPPFLAGS}
14643 LDFLAGS=${save_LDFLAGS}
14646 if test "x${__opj_prefix}" = "x" ; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14648 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14651 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14654 $as_echo "${__opj_have_dep}" >&6; }
14656 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14657 if test "x${FCGI_CFLAGS}" = "x" ; then
14658 FCGI_CFLAGS="-I${__opj_prefix}/include"
14660 if test "x${FCGI_LIBS}" = "x" ; then
14661 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14665 if test "x${__opj_have_dep}" = "xyes"; then :
14666 __opj_have_dep="yes"
14668 __opj_have_dep="no"
14676 if ! test "x${__opj_have_dep}" = "xyes" ; then
14683 __opj_header=fcgi_stdio.h
14685 __opj_func=FCGI_Accept
14686 __opj_have_dep="no"
14688 save_CPPFLAGS=${CPPFLAGS}
14689 save_LDFLAGS=${LDFLAGS}
14692 if test "x${__opj_prefix}" = "x" ; then
14693 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14694 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14696 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14697 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14698 LIBS="${LIBS} -l${__opj_lib}"
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14704 #include <${__opj_header}>
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 __opj_have_dep="yes"
14719 __opj_have_dep="no"
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14724 CPPFLAGS=${save_CPPFLAGS}
14725 LDFLAGS=${save_LDFLAGS}
14728 if test "x${__opj_prefix}" = "x" ; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14730 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14733 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14736 $as_echo "${__opj_have_dep}" >&6; }
14738 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14739 if test "x${FCGI_CFLAGS}" = "x" ; then
14740 FCGI_CFLAGS="-I${__opj_prefix}/include"
14742 if test "x${FCGI_LIBS}" = "x" ; then
14743 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14747 if test "x${__opj_have_dep}" = "xyes"; then :
14748 __opj_have_dep="yes"
14750 __opj_have_dep="no"
14759 if ! test "x${__opj_have_dep}" = "xyes" ; then
14765 __opj_prefix=/usr/local
14766 __opj_header=fcgi_stdio.h
14768 __opj_func=FCGI_Accept
14769 __opj_have_dep="no"
14771 save_CPPFLAGS=${CPPFLAGS}
14772 save_LDFLAGS=${LDFLAGS}
14775 if test "x${__opj_prefix}" = "x" ; then
14776 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14777 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14779 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14780 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14781 LIBS="${LIBS} -l${__opj_lib}"
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14787 #include <${__opj_header}>
14799 if ac_fn_c_try_link "$LINENO"; then :
14800 __opj_have_dep="yes"
14802 __opj_have_dep="no"
14804 rm -f core conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14807 CPPFLAGS=${save_CPPFLAGS}
14808 LDFLAGS=${save_LDFLAGS}
14811 if test "x${__opj_prefix}" = "x" ; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14813 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14816 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14819 $as_echo "${__opj_have_dep}" >&6; }
14821 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14822 if test "x${FCGI_CFLAGS}" = "x" ; then
14823 FCGI_CFLAGS="-I${__opj_prefix}/include"
14825 if test "x${FCGI_LIBS}" = "x" ; then
14826 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14830 if test "x${__opj_have_dep}" = "xyes"; then :
14831 __opj_have_dep="yes"
14833 __opj_have_dep="no"
14842 if ! test "x${__opj_have_dep}" = "xyes" ; then
14848 __opj_prefix=/opt/local
14849 __opj_header=fcgi_stdio.h
14851 __opj_func=FCGI_Accept
14852 __opj_have_dep="no"
14854 save_CPPFLAGS=${CPPFLAGS}
14855 save_LDFLAGS=${LDFLAGS}
14858 if test "x${__opj_prefix}" = "x" ; then
14859 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
14860 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
14862 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14863 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14864 LIBS="${LIBS} -l${__opj_lib}"
14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14870 #include <${__opj_header}>
14882 if ac_fn_c_try_link "$LINENO"; then :
14883 __opj_have_dep="yes"
14885 __opj_have_dep="no"
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14890 CPPFLAGS=${save_CPPFLAGS}
14891 LDFLAGS=${save_LDFLAGS}
14894 if test "x${__opj_prefix}" = "x" ; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
14896 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
14899 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14902 $as_echo "${__opj_have_dep}" >&6; }
14904 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14905 if test "x${FCGI_CFLAGS}" = "x" ; then
14906 FCGI_CFLAGS="-I${__opj_prefix}/include"
14908 if test "x${FCGI_LIBS}" = "x" ; then
14909 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14913 if test "x${__opj_have_dep}" = "xyes"; then :
14914 __opj_have_dep="yes"
14916 __opj_have_dep="no"
14930 if test "x${__opj_have_dep}" = "xyes"; then :
14940 if ! test "x${have_fcgi}" = "xyes" ; then
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&5
14942 $as_echo "$as_me: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&2;}
14943 want_jpip_server="no"
14950 if test "x${want_jpip_server}" = "xyes" ; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
14955 $as_echo_n "checking for LIBCURL... " >&6; }
14957 if test -n "$LIBCURL_CFLAGS"; then
14958 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
14959 elif test -n "$PKG_CONFIG"; then
14960 if test -n "$PKG_CONFIG" && \
14961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
14962 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
14964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965 test $ac_status = 0; }; then
14966 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
14973 if test -n "$LIBCURL_LIBS"; then
14974 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
14975 elif test -n "$PKG_CONFIG"; then
14976 if test -n "$PKG_CONFIG" && \
14977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
14978 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
14980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981 test $ac_status = 0; }; then
14982 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
14992 if test $pkg_failed = yes; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994 $as_echo "no" >&6; }
14996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14997 _pkg_short_errors_supported=yes
14999 _pkg_short_errors_supported=no
15001 if test $_pkg_short_errors_supported = yes; then
15002 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
15004 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
15006 # Put the nasty error message in config.log where it belongs
15007 echo "$LIBCURL_PKG_ERRORS" >&5
15010 elif test $pkg_failed = untried; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15015 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
15016 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15018 $as_echo "yes" >&6; }
15022 if ! test "x${have_libcurl}" = "xyes" ; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&5
15024 $as_echo "$as_me: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&2;}
15025 want_jpip_server="no"
15030 if test "x${want_jpip}" = "xyes" ; then
15032 $as_echo "#define USE_JPIP 1" >>confdefs.h
15036 if test "x${want_jpip}" = "xyes"; then
15038 WANT_JPIP_FALSE='#'
15045 if test "x${want_jpip_server}" = "xyes" ; then
15047 $as_echo "#define USE_JPIP_SERVER 1" >>confdefs.h
15051 if test "x${want_jpip_server}" = "xyes"; then
15052 WANT_JPIP_SERVER_TRUE=
15053 WANT_JPIP_SERVER_FALSE='#'
15055 WANT_JPIP_SERVER_TRUE='#'
15056 WANT_JPIP_SERVER_FALSE=
15060 if test "x${want_jpip}" = "xyes" || test "x${want_jpip_server}" = "xyes"; then
15061 WANT_JPIP_CODE_TRUE=
15062 WANT_JPIP_CODE_FALSE='#'
15064 WANT_JPIP_CODE_TRUE='#'
15065 WANT_JPIP_CODE_FALSE=
15069 ### Checks for header files
15071 ## FIXME: declarations must be fixed in source code. See autoconf manual
15072 ac_header_dirent=no
15073 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15074 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15076 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
15078 $as_echo_n "(cached) " >&6
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082 #include <sys/types.h>
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 eval "$as_ac_Header=yes"
15097 eval "$as_ac_Header=no"
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 eval ac_res=\$$as_ac_Header
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15103 $as_echo "$ac_res" >&6; }
15104 eval as_val=\$$as_ac_Header
15105 if test "x$as_val" = x""yes; then :
15106 cat >>confdefs.h <<_ACEOF
15107 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15110 ac_header_dirent=$ac_hdr; break
15114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15115 if test $ac_header_dirent = dirent.h; then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15117 $as_echo_n "checking for library containing opendir... " >&6; }
15118 if test "${ac_cv_search_opendir+set}" = set; then :
15119 $as_echo_n "(cached) " >&6
15121 ac_func_search_save_LIBS=$LIBS
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15125 /* Override any GCC internal prototype to avoid an error.
15126 Use char because int might match the return type of a GCC
15127 builtin and then its argument prototype would still apply. */
15140 for ac_lib in '' dir; do
15141 if test -z "$ac_lib"; then
15142 ac_res="none required"
15145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15147 if ac_fn_c_try_link "$LINENO"; then :
15148 ac_cv_search_opendir=$ac_res
15150 rm -f core conftest.err conftest.$ac_objext \
15152 if test "${ac_cv_search_opendir+set}" = set; then :
15156 if test "${ac_cv_search_opendir+set}" = set; then :
15159 ac_cv_search_opendir=no
15161 rm conftest.$ac_ext
15162 LIBS=$ac_func_search_save_LIBS
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15165 $as_echo "$ac_cv_search_opendir" >&6; }
15166 ac_res=$ac_cv_search_opendir
15167 if test "$ac_res" != no; then :
15168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15174 $as_echo_n "checking for library containing opendir... " >&6; }
15175 if test "${ac_cv_search_opendir+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15178 ac_func_search_save_LIBS=$LIBS
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15197 for ac_lib in '' x; do
15198 if test -z "$ac_lib"; then
15199 ac_res="none required"
15202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15204 if ac_fn_c_try_link "$LINENO"; then :
15205 ac_cv_search_opendir=$ac_res
15207 rm -f core conftest.err conftest.$ac_objext \
15209 if test "${ac_cv_search_opendir+set}" = set; then :
15213 if test "${ac_cv_search_opendir+set}" = set; then :
15216 ac_cv_search_opendir=no
15218 rm conftest.$ac_ext
15219 LIBS=$ac_func_search_save_LIBS
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15222 $as_echo "$ac_cv_search_opendir" >&6; }
15223 ac_res=$ac_cv_search_opendir
15224 if test "$ac_res" != no; then :
15225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15233 ### Checks for types
15236 ### Checks for structures
15239 ### Checks for compiler characteristics
15241 if test "x$CC" != xcc; then
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15243 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15246 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15248 set dummy $CC; ac_cc=`$as_echo "$2" |
15249 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15250 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
15251 $as_echo_n "(cached) " >&6
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15264 # Make sure it works both with $CC and with simple cc.
15265 # We do the test twice because some compilers refuse to overwrite an
15266 # existing .o file with -o, though they will create one.
15267 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15269 if { { case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15274 $as_echo "$ac_try_echo"; } >&5
15275 (eval "$ac_try") 2>&5
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; } &&
15279 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15284 $as_echo "$ac_try_echo"; } >&5
15285 (eval "$ac_try") 2>&5
15287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15288 test $ac_status = 0; };
15290 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15291 if test "x$CC" != xcc; then
15292 # Test first that cc exists at all.
15293 if { ac_try='cc -c conftest.$ac_ext >&5'
15294 { { case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15299 $as_echo "$ac_try_echo"; } >&5
15300 (eval "$ac_try") 2>&5
15302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15303 test $ac_status = 0; }; }; then
15304 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15306 if { { case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15311 $as_echo "$ac_try_echo"; } >&5
15312 (eval "$ac_try") 2>&5
15314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315 test $ac_status = 0; } &&
15316 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15321 $as_echo "$ac_try_echo"; } >&5
15322 (eval "$ac_try") 2>&5
15324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325 test $ac_status = 0; };
15330 # cc exists but doesn't like -o.
15331 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15336 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15338 rm -f core conftest*
15341 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15343 $as_echo "yes" >&6; }
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15348 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15352 # FIXME: we rely on the cache variable name because
15353 # there is no other way.
15355 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15356 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15357 if test "$am_t" != yes; then
15358 # Losing compiler, so override with the script.
15359 # FIXME: It is wrong to rewrite CC.
15360 # But if we don't then we get into trouble of one sort or another.
15361 # A longer-term fix would be to have automake use am__CC in this case,
15362 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15363 CC="$am_aux_dir/compile $CC"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15368 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15369 if test "${ac_cv_c_bigendian+set}" = set; then :
15370 $as_echo_n "(cached) " >&6
15372 ac_cv_c_bigendian=unknown
15373 # See if we're dealing with a universal compiler.
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 #ifndef __APPLE_CC__
15377 not a universal capable compiler
15382 if ac_fn_c_try_compile "$LINENO"; then :
15384 # Check for potential -arch flags. It is not universal unless
15385 # there are at least two -arch flags with different values.
15388 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15389 if test -n "$ac_prev"; then
15391 i?86 | x86_64 | ppc | ppc64)
15392 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15395 ac_cv_c_bigendian=universal
15401 elif test "x$ac_word" = "x-arch"; then
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 if test $ac_cv_c_bigendian = unknown; then
15408 # See if sys/param.h defines the BYTE_ORDER macro.
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #include <sys/types.h>
15412 #include <sys/param.h>
15417 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15418 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15420 bogus endian macros
15427 if ac_fn_c_try_compile "$LINENO"; then :
15428 # It does; now see whether it defined to BIG_ENDIAN or not.
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 #include <sys/types.h>
15432 #include <sys/param.h>
15437 #if BYTE_ORDER != BIG_ENDIAN
15445 if ac_fn_c_try_compile "$LINENO"; then :
15446 ac_cv_c_bigendian=yes
15448 ac_cv_c_bigendian=no
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 if test $ac_cv_c_bigendian = unknown; then
15455 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 #include <limits.h>
15463 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15464 bogus endian macros
15471 if ac_fn_c_try_compile "$LINENO"; then :
15472 # It does; now see whether it defined to _BIG_ENDIAN or not.
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 #include <limits.h>
15480 #ifndef _BIG_ENDIAN
15488 if ac_fn_c_try_compile "$LINENO"; then :
15489 ac_cv_c_bigendian=yes
15491 ac_cv_c_bigendian=no
15493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 if test $ac_cv_c_bigendian = unknown; then
15498 # Compile a test program.
15499 if test "$cross_compiling" = yes; then :
15500 # Try to guess by grepping values from an object file.
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 short int ascii_mm[] =
15504 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15505 short int ascii_ii[] =
15506 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15507 int use_ascii (int i) {
15508 return ascii_mm[i] + ascii_ii[i];
15510 short int ebcdic_ii[] =
15511 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15512 short int ebcdic_mm[] =
15513 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15514 int use_ebcdic (int i) {
15515 return ebcdic_mm[i] + ebcdic_ii[i];
15522 return use_ascii (foo) == use_ebcdic (foo);
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15529 ac_cv_c_bigendian=yes
15531 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15532 if test "$ac_cv_c_bigendian" = unknown; then
15533 ac_cv_c_bigendian=no
15535 # finding both strings is unlikely to happen, but who knows?
15536 ac_cv_c_bigendian=unknown
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15544 $ac_includes_default
15549 /* Are we little or big endian? From Harbison&Steele. */
15553 char c[sizeof (long int)];
15556 return u.c[sizeof (long int) - 1] == 1;
15562 if ac_fn_c_try_run "$LINENO"; then :
15563 ac_cv_c_bigendian=no
15565 ac_cv_c_bigendian=yes
15567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15568 conftest.$ac_objext conftest.beam conftest.$ac_ext
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15574 $as_echo "$ac_cv_c_bigendian" >&6; }
15575 case $ac_cv_c_bigendian in #(
15577 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15583 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15587 as_fn_error "unknown endianness
15588 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15592 #OPJ_COMPILER_FLAG([-Wall])
15593 #OPJ_COMPILER_FLAG([-Wextra])
15594 #OPJ_COMPILER_FLAG([-Wshadow])
15595 #OPJ_COMPILER_FLAG([-Wpointer-arith])
15598 CFLAGS_save="${CFLAGS}"
15599 CFLAGS="${CFLAGS} -Wno-unused-result"
15602 ac_cpp='$CPP $CPPFLAGS'
15603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
15608 $as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15621 if ac_fn_c_try_compile "$LINENO"; then :
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15628 $as_echo "${have_flag}" >&6; }
15630 if test "x${have_flag}" = "xno" ; then
15631 CFLAGS="${CFLAGS_save}"
15634 ac_cpp='$CPP $CPPFLAGS'
15635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15642 if test "x${want_debug}" = "xyes" ; then
15645 CFLAGS_save="${CFLAGS}"
15646 CFLAGS="${CFLAGS} -g"
15649 ac_cpp='$CPP $CPPFLAGS'
15650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -g" >&5
15655 $as_echo_n "checking whether the compiler supports -g... " >&6; }
15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15668 if ac_fn_c_try_compile "$LINENO"; then :
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15675 $as_echo "${have_flag}" >&6; }
15677 if test "x${have_flag}" = "xno" ; then
15678 CFLAGS="${CFLAGS_save}"
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15690 CFLAGS_save="${CFLAGS}"
15691 CFLAGS="${CFLAGS} -O0"
15694 ac_cpp='$CPP $CPPFLAGS'
15695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O0" >&5
15700 $as_echo_n "checking whether the compiler supports -O0... " >&6; }
15702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15713 if ac_fn_c_try_compile "$LINENO"; then :
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15720 $as_echo "${have_flag}" >&6; }
15722 if test "x${have_flag}" = "xno" ; then
15723 CFLAGS="${CFLAGS_save}"
15726 ac_cpp='$CPP $CPPFLAGS'
15727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15736 CFLAGS_save="${CFLAGS}"
15737 CFLAGS="${CFLAGS} -O3"
15740 ac_cpp='$CPP $CPPFLAGS'
15741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O3" >&5
15746 $as_echo_n "checking whether the compiler supports -O3... " >&6; }
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15759 if ac_fn_c_try_compile "$LINENO"; then :
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
15766 $as_echo "${have_flag}" >&6; }
15768 if test "x${have_flag}" = "xno" ; then
15769 CFLAGS="${CFLAGS_save}"
15772 ac_cpp='$CPP $CPPFLAGS'
15773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15782 ### Checks for linker characteristics
15785 ### Checks for library functions
15788 ### Post configuration
15790 if test "x${enable_shared}" = "xyes"; then
15792 BUILD_SHARED_FALSE='#'
15794 BUILD_SHARED_TRUE='#'
15795 BUILD_SHARED_FALSE=
15798 if test "x${enable_static}" = "xyes"; then
15800 BUILD_STATIC_FALSE='#'
15802 BUILD_STATIC_TRUE='#'
15803 BUILD_STATIC_FALSE=
15808 ac_config_files="$ac_config_files Makefile libopenjpeg1.pc libopenjpeg-jpwl.pc libopenjpeg/Makefile libopenjpeg/jpwl/Makefile applications/Makefile applications/codec/Makefile applications/mj2/Makefile applications/jpip/Makefile applications/jpip/libopenjpip/Makefile applications/jpip/util/Makefile doc/Makefile"
15811 cat >confcache <<\_ACEOF
15812 # This file is a shell script that caches the results of configure
15813 # tests run on this system so they can be shared between configure
15814 # scripts and configure runs, see configure's option --config-cache.
15815 # It is not useful on other systems. If it contains results you don't
15816 # want to keep, you may remove or edit it.
15818 # config.status only pays attention to the cache file if you give it
15819 # the --recheck option to rerun configure.
15821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15823 # following values.
15827 # The following way of writing the cache mishandles newlines in values,
15828 # but we know of no workaround that is simple, portable, and efficient.
15829 # So, we kill variables containing newlines.
15830 # Ultrix sh set writes to stderr and can't be redirected directly,
15831 # and sets the high bit in the cache file unless we assign to the vars.
15833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15834 eval ac_val=\$$ac_var
15838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15842 _ | IFS | as_nl) ;; #(
15843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15844 *) { eval $ac_var=; unset $ac_var;} ;;
15850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15851 *${as_nl}ac_space=\ *)
15852 # `set' does not quote correctly, so add quotes: double-quote
15853 # substitution turns \\\\ into \\, and sed turns \\ into \.
15856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15859 # `set' quotes correctly as required by POSIX, so do not add quotes.
15860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15874 if test -w "$cache_file"; then
15875 test "x$cache_file" != "x/dev/null" &&
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15877 $as_echo "$as_me: updating cache $cache_file" >&6;}
15878 cat confcache >$cache_file
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15881 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15886 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15887 # Let make expand exec_prefix.
15888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15890 DEFS=-DHAVE_CONFIG_H
15894 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15895 # 1. Remove the extension, and $U if already installed.
15896 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15897 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15898 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15899 # will be set to the directory where LIBOBJS objects are built.
15900 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15901 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15903 LIBOBJS=$ac_libobjs
15905 LTLIBOBJS=$ac_ltlibobjs
15908 if test -n "$EXEEXT"; then
15910 am__EXEEXT_FALSE='#'
15912 am__EXEEXT_TRUE='#'
15916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15917 as_fn_error "conditional \"AMDEP\" was never defined.
15918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15921 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15924 if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
15925 as_fn_error "conditional \"HAVE_WIN32\" was never defined.
15926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15928 if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
15929 as_fn_error "conditional \"HAVE_DARWIN\" was never defined.
15930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15932 if test -z "${WANT_MJ2_TRUE}" && test -z "${WANT_MJ2_FALSE}"; then
15933 as_fn_error "conditional \"WANT_MJ2\" was never defined.
15934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15936 if test -z "${WANT_JPWL_TRUE}" && test -z "${WANT_JPWL_FALSE}"; then
15937 as_fn_error "conditional \"WANT_JPWL\" was never defined.
15938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15940 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15941 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15944 if test -z "${OPJ_BUILD_DOC_TRUE}" && test -z "${OPJ_BUILD_DOC_FALSE}"; then
15945 as_fn_error "conditional \"OPJ_BUILD_DOC\" was never defined.
15946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15948 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
15949 as_fn_error "conditional \"with_libpng\" was never defined.
15950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15952 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
15953 as_fn_error "conditional \"with_libtiff\" was never defined.
15954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15956 if test -z "${WANT_JPIP_TRUE}" && test -z "${WANT_JPIP_FALSE}"; then
15957 as_fn_error "conditional \"WANT_JPIP\" was never defined.
15958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15960 if test -z "${WANT_JPIP_SERVER_TRUE}" && test -z "${WANT_JPIP_SERVER_FALSE}"; then
15961 as_fn_error "conditional \"WANT_JPIP_SERVER\" was never defined.
15962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15964 if test -z "${WANT_JPIP_CODE_TRUE}" && test -z "${WANT_JPIP_CODE_FALSE}"; then
15965 as_fn_error "conditional \"WANT_JPIP_CODE\" was never defined.
15966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15969 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
15970 as_fn_error "conditional \"BUILD_SHARED\" was never defined.
15971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15973 if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
15974 as_fn_error "conditional \"BUILD_STATIC\" was never defined.
15975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15978 : ${CONFIG_STATUS=./config.status}
15980 ac_clean_files_save=$ac_clean_files
15981 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15983 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15985 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15987 # Generated by $as_me.
15988 # Run this file to recreate the current configuration.
15989 # Compiler output produced by configure, useful for debugging
15990 # configure, is in config.log if it exists.
15993 ac_cs_recheck=false
15996 SHELL=\${CONFIG_SHELL-$SHELL}
15999 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16000 ## -------------------- ##
16001 ## M4sh Initialization. ##
16002 ## -------------------- ##
16004 # Be more Bourne compatible
16005 DUALCASE=1; export DUALCASE # for MKS sh
16006 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16009 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16010 # is contrary to our usage. Disable this feature.
16011 alias -g '${1+"$@"}'='"$@"'
16012 setopt NO_GLOB_SUBST
16014 case `(set -o) 2>/dev/null` in #(
16026 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16027 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16028 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16029 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16030 # Prefer a ksh shell builtin over an external printf program on Solaris,
16031 # but without wasting forks for bash or zsh.
16032 if test -z "$BASH_VERSION$ZSH_VERSION" \
16033 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16034 as_echo='print -r --'
16035 as_echo_n='print -rn --'
16036 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16037 as_echo='printf %s\n'
16038 as_echo_n='printf %s'
16040 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16041 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16042 as_echo_n='/usr/ucb/echo -n'
16044 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16045 as_echo_n_body='eval
16049 expr "X$arg" : "X\\(.*\\)$as_nl";
16050 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16052 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16054 export as_echo_n_body
16055 as_echo_n='sh -c $as_echo_n_body as_echo'
16057 export as_echo_body
16058 as_echo='sh -c $as_echo_body as_echo'
16061 # The user is always right.
16062 if test "${PATH_SEPARATOR+set}" != set; then
16064 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16065 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16072 # We need space, tab and new line, in precisely that order. Quoting is
16073 # there to prevent editors from complaining about space-tab.
16074 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16075 # splitting by setting IFS to empty value.)
16078 # Find who we are. Look in the path if we contain no directory separator.
16080 *[\\/]* ) as_myself=$0 ;;
16081 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16082 for as_dir in $PATH
16085 test -z "$as_dir" && as_dir=.
16086 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16092 # We did not find ourselves, most probably we were run as `sh COMMAND'
16093 # in which case we are not to be found in the path.
16094 if test "x$as_myself" = x; then
16097 if test ! -f "$as_myself"; then
16098 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16102 # Unset variables that we do not need and which cause bugs (e.g. in
16103 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16104 # suppresses any "Segmentation fault" message there. '((' could
16105 # trigger a bug in pdksh 5.2.14.
16106 for as_var in BASH_ENV ENV MAIL MAILPATH
16107 do eval test x\${$as_var+set} = xset \
16108 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16124 # as_fn_error ERROR [LINENO LOG_FD]
16125 # ---------------------------------
16126 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16127 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16128 # script with status $?, using 1 if that was 0.
16131 as_status=$?; test $as_status -eq 0 && as_status=1
16133 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16134 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16136 $as_echo "$as_me: error: $1" >&2
16137 as_fn_exit $as_status
16141 # as_fn_set_status STATUS
16142 # -----------------------
16143 # Set $? to STATUS, without forking.
16144 as_fn_set_status ()
16147 } # as_fn_set_status
16149 # as_fn_exit STATUS
16150 # -----------------
16151 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16155 as_fn_set_status $1
16161 # Portably unset VAR.
16164 { eval $1=; unset $1;}
16166 as_unset=as_fn_unset
16167 # as_fn_append VAR VALUE
16168 # ----------------------
16169 # Append the text in VALUE to the end of the definition contained in VAR. Take
16170 # advantage of any shell optimizations that allow amortized linear growth over
16171 # repeated appends, instead of the typical quadratic growth present in naive
16173 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16174 eval 'as_fn_append ()
16185 # as_fn_arith ARG...
16186 # ------------------
16187 # Perform arithmetic evaluation on the ARGs, and store the result in the
16188 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16189 # must be portable across $(()) and expr.
16190 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16191 eval 'as_fn_arith ()
16198 as_val=`expr "$@" || test $? -eq 1`
16203 if expr a : '\(a\)' >/dev/null 2>&1 &&
16204 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16210 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16211 as_basename=basename
16216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16222 as_me=`$as_basename -- "$0" ||
16223 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16224 X"$0" : 'X\(//\)$' \| \
16225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16227 sed '/^.*\/\([^/][^/]*\)\/*$/{
16241 # Avoid depending upon Character Ranges.
16242 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16243 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16244 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16245 as_cr_digits='0123456789'
16246 as_cr_alnum=$as_cr_Letters$as_cr_digits
16248 ECHO_C= ECHO_N= ECHO_T=
16249 case `echo -n x` in #(((((
16251 case `echo 'xy\c'` in
16252 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16254 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16261 rm -f conf$$ conf$$.exe conf$$.file
16262 if test -d conf$$.dir; then
16263 rm -f conf$$.dir/conf$$.file
16266 mkdir conf$$.dir 2>/dev/null
16268 if (echo >conf$$.file) 2>/dev/null; then
16269 if ln -s conf$$.file conf$$ 2>/dev/null; then
16271 # ... but there are two gotchas:
16272 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16273 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16274 # In both cases, we have to default to `cp -p'.
16275 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16277 elif ln conf$$.file conf$$ 2>/dev/null; then
16285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16286 rmdir conf$$.dir 2>/dev/null
16291 # Create "$as_dir" as a directory, including parents if necessary.
16296 -*) as_dir=./$as_dir;;
16298 test -d "$as_dir" || eval $as_mkdir_p || {
16302 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16303 *) as_qdir=$as_dir;;
16305 as_dirs="'$as_qdir' $as_dirs"
16306 as_dir=`$as_dirname -- "$as_dir" ||
16307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308 X"$as_dir" : 'X\(//\)[^/]' \| \
16309 X"$as_dir" : 'X\(//\)$' \| \
16310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16311 $as_echo X"$as_dir" |
16312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16316 /^X\(\/\/\)[^/].*/{
16329 test -d "$as_dir" && break
16331 test -z "$as_dirs" || eval "mkdir $as_dirs"
16332 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16336 if mkdir -p . 2>/dev/null; then
16337 as_mkdir_p='mkdir -p "$as_dir"'
16339 test -d ./-p && rmdir ./-p
16343 if test -x / >/dev/null 2>&1; then
16344 as_test_x='test -x'
16346 if ls -dL / >/dev/null 2>&1; then
16353 if test -d "$1"; then
16359 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16360 ???[sx]*):;;*)false;;esac;fi
16364 as_executable_p=$as_test_x
16366 # Sed expression to map a string onto a valid CPP name.
16367 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16369 # Sed expression to map a string onto a valid variable name.
16370 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16374 ## ----------------------------------- ##
16375 ## Main body of $CONFIG_STATUS script. ##
16376 ## ----------------------------------- ##
16378 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16381 # Save the log message, to keep $0 and so on meaningful, and to
16382 # report actual input values of CONFIG_FILES etc. instead of their
16383 # values after options handling.
16385 This file was extended by OpenJPEG $as_me 1.5.0, which was
16386 generated by GNU Autoconf 2.65. Invocation command line was
16388 CONFIG_FILES = $CONFIG_FILES
16389 CONFIG_HEADERS = $CONFIG_HEADERS
16390 CONFIG_LINKS = $CONFIG_LINKS
16391 CONFIG_COMMANDS = $CONFIG_COMMANDS
16394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16399 case $ac_config_files in *"
16400 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16403 case $ac_config_headers in *"
16404 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16409 # Files that config.status was made for.
16410 config_files="$ac_config_files"
16411 config_headers="$ac_config_headers"
16412 config_commands="$ac_config_commands"
16416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 \`$as_me' instantiates files and other configuration actions
16419 from templates according to the current configuration. Unless the files
16420 and actions are specified as TAGs, all are instantiated by default.
16422 Usage: $0 [OPTION]... [TAG]...
16424 -h, --help print this help, then exit
16425 -V, --version print version number and configuration settings, then exit
16426 --config print configuration, then exit
16427 -q, --quiet, --silent
16428 do not print progress messages
16429 -d, --debug don't remove temporary files
16430 --recheck update $as_me by reconfiguring in the same conditions
16431 --file=FILE[:TEMPLATE]
16432 instantiate the configuration file FILE
16433 --header=FILE[:TEMPLATE]
16434 instantiate the configuration header FILE
16436 Configuration files:
16439 Configuration headers:
16442 Configuration commands:
16445 Report bugs to <openjpeg@googlegroups.com>.
16446 OpenJPEG home page: <http://www.openjpeg.org>."
16449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16450 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16452 OpenJPEG config.status 1.5.0
16453 configured by $0, generated by GNU Autoconf 2.65,
16454 with options \\"\$ac_cs_config\\"
16456 Copyright (C) 2009 Free Software Foundation, Inc.
16457 This config.status script is free software; the Free Software Foundation
16458 gives unlimited permission to copy, distribute and modify it."
16465 test -n "\$AWK" || AWK=awk
16468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16469 # The default lists apply if the user does not specify any file.
16475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16487 # Handling of the options.
16488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16490 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16491 $as_echo "$ac_cs_version"; exit ;;
16492 --config | --confi | --conf | --con | --co | --c )
16493 $as_echo "$ac_cs_config"; exit ;;
16494 --debug | --debu | --deb | --de | --d | -d )
16496 --file | --fil | --fi | --f )
16499 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16501 as_fn_append CONFIG_FILES " '$ac_optarg'"
16502 ac_need_defaults=false;;
16503 --header | --heade | --head | --hea )
16506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16508 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16509 ac_need_defaults=false;;
16511 # Conflict between --help and --header
16512 as_fn_error "ambiguous option: \`$1'
16513 Try \`$0 --help' for more information.";;
16514 --help | --hel | -h )
16515 $as_echo "$ac_cs_usage"; exit ;;
16516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16517 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16520 # This is an error.
16521 -*) as_fn_error "unrecognized option: \`$1'
16522 Try \`$0 --help' for more information." ;;
16524 *) as_fn_append ac_config_targets " $1"
16525 ac_need_defaults=false ;;
16531 ac_configure_extra_args=
16533 if $ac_cs_silent; then
16535 ac_configure_extra_args="$ac_configure_extra_args --silent"
16539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16540 if \$ac_cs_recheck; then
16541 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16543 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16544 CONFIG_SHELL='$SHELL'
16545 export CONFIG_SHELL
16550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16555 ## Running $as_me. ##
16561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16565 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16568 # The HP-UX ksh and POSIX shell print the target directory to stdout
16569 # if CDPATH is set.
16570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16572 sed_quote_subst='$sed_quote_subst'
16573 double_quote_subst='$double_quote_subst'
16574 delay_variable_subst='$delay_variable_subst'
16575 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16576 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16577 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16578 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16579 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16580 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16581 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16582 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16583 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16584 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16585 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16586 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16587 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16588 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16589 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16590 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16591 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16592 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16593 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16594 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16595 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16596 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16597 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16598 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16599 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16600 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16601 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16602 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16603 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16604 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16605 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16606 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16607 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16608 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16609 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16610 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16611 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16612 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16613 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16614 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16615 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16616 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16617 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16618 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16619 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16620 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16621 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"`'
16622 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"`'
16623 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16624 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16625 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16626 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16627 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16628 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16629 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16630 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16631 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16632 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16633 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16634 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16635 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16636 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16637 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16638 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16639 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16640 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16641 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16642 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16643 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16644 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16645 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16646 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16647 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16648 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16649 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16650 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16651 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16652 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16653 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16654 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16655 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16656 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16657 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16658 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16659 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16660 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16661 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16662 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16663 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16664 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16665 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16666 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16667 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16668 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16669 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16670 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16671 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16672 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16673 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16674 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16675 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16676 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16677 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16678 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16679 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16680 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16681 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16682 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16683 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16684 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16685 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16686 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16687 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16688 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16689 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16690 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16691 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16692 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16693 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16694 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16697 LTCFLAGS='$LTCFLAGS'
16698 compiler='$compiler_DEFAULT'
16700 # Quote evaled strings.
16711 deplibs_check_method \
16720 lt_cv_sys_global_symbol_pipe \
16721 lt_cv_sys_global_symbol_to_cdecl \
16722 lt_cv_sys_global_symbol_to_c_name_address \
16723 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16726 lt_prog_compiler_no_builtin_flag \
16727 lt_prog_compiler_wl \
16728 lt_prog_compiler_pic \
16729 lt_prog_compiler_static \
16730 lt_cv_prog_compiler_c_o \
16738 export_dynamic_flag_spec \
16739 whole_archive_flag_spec \
16740 compiler_needs_object \
16742 allow_undefined_flag \
16743 no_undefined_flag \
16744 hardcode_libdir_flag_spec \
16745 hardcode_libdir_flag_spec_ld \
16746 hardcode_libdir_separator \
16751 variables_saved_for_relink \
16753 library_names_spec \
16758 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16759 *[\\\\\\\`\\"\\\$]*)
16760 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16763 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16768 # Double-quote double-evaled strings.
16769 for var in reload_cmds \
16770 old_postinstall_cmds \
16771 old_postuninstall_cmds \
16773 extract_expsyms_cmds \
16774 old_archive_from_new_cmds \
16775 old_archive_from_expsyms_cmds \
16777 archive_expsym_cmds \
16779 module_expsym_cmds \
16780 export_symbols_cmds \
16783 postuninstall_cmds \
16785 sys_lib_search_path_spec \
16786 sys_lib_dlsearch_path_spec; do
16787 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16788 *[\\\\\\\`\\"\\\$]*)
16789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16797 # Fix-up fallback echo if it was mangled by the above quoting rules.
16799 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16803 ac_aux_dir='$ac_aux_dir'
16804 xsi_shell='$xsi_shell'
16805 lt_shell_append='$lt_shell_append'
16807 # See if we are running on zsh, and set the options which allow our
16808 # commands through without removal of \ escapes INIT.
16809 if test -n "\${ZSH_VERSION+set}" ; then
16810 setopt NO_GLOB_SUBST
16816 TIMESTAMP='$TIMESTAMP'
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16827 # Handling of arguments.
16828 for ac_config_target in $ac_config_targets
16830 case $ac_config_target in
16831 "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
16832 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16833 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16835 "libopenjpeg1.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg1.pc" ;;
16836 "libopenjpeg-jpwl.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg-jpwl.pc" ;;
16837 "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
16838 "libopenjpeg/jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/jpwl/Makefile" ;;
16839 "applications/Makefile") CONFIG_FILES="$CONFIG_FILES applications/Makefile" ;;
16840 "applications/codec/Makefile") CONFIG_FILES="$CONFIG_FILES applications/codec/Makefile" ;;
16841 "applications/mj2/Makefile") CONFIG_FILES="$CONFIG_FILES applications/mj2/Makefile" ;;
16842 "applications/jpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/Makefile" ;;
16843 "applications/jpip/libopenjpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/libopenjpip/Makefile" ;;
16844 "applications/jpip/util/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/util/Makefile" ;;
16845 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16847 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16852 # If the user did not use the arguments to specify the items to instantiate,
16853 # then the envvar interface is used. Set only those that are not.
16854 # We use the long form for the default assignment because of an extremely
16855 # bizarre bug on SunOS 4.1.3.
16856 if $ac_need_defaults; then
16857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16862 # Have a temporary directory for convenience. Make it in the build tree
16863 # simply because there is no reason against having it here, and in addition,
16864 # creating and moving files from /tmp can sometimes cause problems.
16865 # Hook for its removal unless debugging.
16866 # Note that there is a small window in which the directory will not be cleaned:
16867 # after its creation but before its name has been assigned to `$tmp'.
16871 trap 'exit_status=$?
16872 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16874 trap 'as_fn_exit 1' 1 2 13 15
16876 # Create a (secure) tmp directory for tmp files.
16879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16880 test -n "$tmp" && test -d "$tmp"
16883 tmp=./conf$$-$RANDOM
16884 (umask 077 && mkdir "$tmp")
16885 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16887 # Set up the scripts for CONFIG_FILES section.
16888 # No need to generate them if there are no CONFIG_FILES.
16889 # This happens for instance with `./config.status config.h'.
16890 if test -n "$CONFIG_FILES"; then
16893 ac_cr=`echo X | tr X '\015'`
16894 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16895 # But we know of no other shell where ac_cr would be empty at this
16896 # point, so we can use a bashism as a fallback.
16897 if test "x$ac_cr" = x; then
16898 eval ac_cr=\$\'\\r\'
16900 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16901 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16904 ac_cs_awk_cr=$ac_cr
16907 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16912 echo "cat >conf$$subs.awk <<_ACEOF" &&
16913 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16915 } >conf$$subs.sh ||
16916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16917 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16919 for ac_last_try in false false false false false :; do
16920 . ./conf$$subs.sh ||
16921 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16923 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16924 if test $ac_delim_n = $ac_delim_num; then
16926 elif $ac_last_try; then
16927 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16932 rm -f conf$$subs.sh
16934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16935 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16939 s/^/S["/; s/!.*/"]=/
16949 s/\(.\{148\}\)..*/\1/
16951 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16963 s/\(.\{148\}\)..*/\1/
16965 s/["\\]/\\&/g; s/^/"/; s/$/"/
16969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16974 ' <conf$$subs.awk | sed '
16979 ' >>$CONFIG_STATUS || ac_write_fail=1
16980 rm -f conf$$subs.awk
16981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16983 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16984 for (key in S) S_is_set[key] = 1
16990 nfields = split(line, field, "@")
16992 len = length(field[1])
16993 for (i = 2; i < nfields; i++) {
16995 keylen = length(key)
16996 if (S_is_set[key]) {
16998 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16999 len += length(value) + length(field[++i])
17010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17011 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17012 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17015 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17016 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17021 # trailing colons and then remove the whole line if VPATH becomes empty
17022 # (actually we leave an empty line to preserve line numbers).
17023 if test "x$srcdir" = x.; then
17024 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17025 s/:*\$(srcdir):*/:/
17026 s/:*\${srcdir}:*/:/
17028 s/^\([^=]*=[ ]*\):*/\1/
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 fi # test -n "$CONFIG_FILES"
17037 # Set up the scripts for CONFIG_HEADERS section.
17038 # No need to generate them if there are no CONFIG_HEADERS.
17039 # This happens for instance with `./config.status Makefile'.
17040 if test -n "$CONFIG_HEADERS"; then
17041 cat >"$tmp/defines.awk" <<\_ACAWK ||
17045 # Transform confdefs.h into an awk script `defines.awk', embedded as
17046 # here-document in config.status, that substitutes the proper values into
17047 # config.h.in to produce config.h.
17049 # Create a delimiter string that does not exist in confdefs.h, to ease
17050 # handling of long lines.
17052 for ac_last_try in false false :; do
17053 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17054 if test -z "$ac_t"; then
17056 elif $ac_last_try; then
17057 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17063 # For the awk script, D is an array of macro values keyed by name,
17064 # likewise P contains macro parameters if any. Preserve backslash
17065 # newline sequences.
17067 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17069 s/.\{148\}/&'"$ac_delim"'/g
17072 s/^[ ]*#[ ]*define[ ][ ]*/ /
17079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17086 D["\1"]=" \3\\\\\\n"\\/p
17088 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17093 s/.\{148\}/&'"$ac_delim"'/g
17098 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17101 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17103 ' <confdefs.h | sed '
17104 s/'"$ac_delim"'/"\\\
17105 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17108 for (key in D) D_is_set[key] = 1
17111 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17113 split(line, arg, " ")
17114 if (arg[1] == "#") {
17118 defundef = substr(arg[1], 2)
17121 split(mac1, mac2, "(") #)
17123 prefix = substr(line, 1, index(line, defundef) - 1)
17124 if (D_is_set[macro]) {
17125 # Preserve the white space surrounding the "#".
17126 print prefix "define", macro P[macro] D[macro]
17129 # Replace #undef with comments. This is necessary, for example,
17130 # in the case of _POSIX_SOURCE, which is predefined and required
17131 # on some systems where configure will not decide to define it.
17132 if (defundef == "undef") {
17133 print "/*", prefix defundef, macro, "*/"
17141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17142 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17143 fi # test -n "$CONFIG_HEADERS"
17146 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17151 :[FHLC]) ac_mode=$ac_tag; continue;;
17153 case $ac_mode$ac_tag in
17155 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17156 :[FH]-) ac_tag=-:-;;
17157 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17174 -) ac_f="$tmp/stdin";;
17175 *) # Look for the file first in the build tree, then in the source tree
17176 # (if the path is not absolute). The absolute path cannot be DOS-style,
17177 # because $ac_f cannot contain `:'.
17181 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17183 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17185 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17186 as_fn_append ac_file_inputs " '$ac_f'"
17189 # Let's still pretend it is `configure' which instantiates (i.e., don't
17190 # use $as_me), people would be surprised to read:
17191 # /* config.h. Generated by config.status. */
17192 configure_input='Generated from '`
17193 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17195 if test x"$ac_file" != x-; then
17196 configure_input="$ac_file. $configure_input"
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17198 $as_echo "$as_me: creating $ac_file" >&6;}
17200 # Neutralize special characters interpreted by sed in replacement strings.
17201 case $configure_input in #(
17202 *\&* | *\|* | *\\* )
17203 ac_sed_conf_input=`$as_echo "$configure_input" |
17204 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17205 *) ac_sed_conf_input=$configure_input;;
17209 *:-:* | *:-) cat >"$tmp/stdin" \
17210 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17215 ac_dir=`$as_dirname -- "$ac_file" ||
17216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17217 X"$ac_file" : 'X\(//\)[^/]' \| \
17218 X"$ac_file" : 'X\(//\)$' \| \
17219 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17220 $as_echo X"$ac_file" |
17221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17225 /^X\(\/\/\)[^/].*/{
17238 as_dir="$ac_dir"; as_fn_mkdir_p
17242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17244 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17245 # A ".." for each directory in $ac_dir_suffix.
17246 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17247 case $ac_top_builddir_sub in
17248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17252 ac_abs_top_builddir=$ac_pwd
17253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17254 # for backward compatibility:
17255 ac_top_builddir=$ac_top_build_prefix
17258 .) # We are building in place.
17260 ac_top_srcdir=$ac_top_builddir_sub
17261 ac_abs_top_srcdir=$ac_pwd ;;
17262 [\\/]* | ?:[\\/]* ) # Absolute name.
17263 ac_srcdir=$srcdir$ac_dir_suffix;
17264 ac_top_srcdir=$srcdir
17265 ac_abs_top_srcdir=$srcdir ;;
17266 *) # Relative name.
17267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17268 ac_top_srcdir=$ac_top_build_prefix$srcdir
17269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17284 ac_MKDIR_P=$MKDIR_P
17286 [\\/$]* | ?:[\\/]* ) ;;
17287 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17292 # If the template does not know about datarootdir, expand it.
17293 # FIXME: This hack should be removed a few years after 2.60.
17294 ac_datarootdir_hack=; ac_datarootdir_seen=
17305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17306 *datarootdir*) ac_datarootdir_seen=yes;;
17307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17309 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17312 ac_datarootdir_hack='
17313 s&@datadir@&$datadir&g
17314 s&@docdir@&$docdir&g
17315 s&@infodir@&$infodir&g
17316 s&@localedir@&$localedir&g
17317 s&@mandir@&$mandir&g
17318 s&\\\${datarootdir}&$datarootdir&g' ;;
17322 # Neutralize VPATH when `$srcdir' = `.'.
17323 # Shell code in configure.ac might set extrasub.
17324 # FIXME: do we really want to maintain this feature?
17325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17326 ac_sed_extra="$ac_vpsub
17329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17332 s|@configure_input@|$ac_sed_conf_input|;t t
17333 s&@top_builddir@&$ac_top_builddir_sub&;t t
17334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17335 s&@srcdir@&$ac_srcdir&;t t
17336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17337 s&@top_srcdir@&$ac_top_srcdir&;t t
17338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17339 s&@builddir@&$ac_builddir&;t t
17340 s&@abs_builddir@&$ac_abs_builddir&;t t
17341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17342 s&@INSTALL@&$ac_INSTALL&;t t
17343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17344 $ac_datarootdir_hack
17346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17347 || as_fn_error "could not create $ac_file" "$LINENO" 5
17349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17350 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17353 which seems to be undefined. Please make sure it is defined." >&5
17354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17355 which seems to be undefined. Please make sure it is defined." >&2;}
17359 -) cat "$tmp/out" && rm -f "$tmp/out";;
17360 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17362 || as_fn_error "could not create $ac_file" "$LINENO" 5
17368 if test x"$ac_file" != x-; then
17370 $as_echo "/* $configure_input */" \
17371 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17372 } >"$tmp/config.h" \
17373 || as_fn_error "could not create $ac_file" "$LINENO" 5
17374 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17379 mv "$tmp/config.h" "$ac_file" \
17380 || as_fn_error "could not create $ac_file" "$LINENO" 5
17383 $as_echo "/* $configure_input */" \
17384 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17385 || as_fn_error "could not create -" "$LINENO" 5
17387 # Compute "$ac_file"'s index in $config_headers.
17390 for _am_header in $config_headers :; do
17391 case $_am_header in
17392 $_am_arg | $_am_arg:* )
17395 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17400 X"$_am_arg" : 'X\(//\)[^/]' \| \
17401 X"$_am_arg" : 'X\(//\)$' \| \
17402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17403 $as_echo X"$_am_arg" |
17404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17408 /^X\(\/\/\)[^/].*/{
17420 s/.*/./; q'`/stamp-h$_am_stamp_count
17423 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17424 $as_echo "$as_me: executing $ac_file commands" >&6;}
17429 case $ac_file$ac_mode in
17430 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17431 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17432 # are listed without --file. Let's play safe and only enable the eval
17433 # if we detect the quoting.
17434 case $CONFIG_FILES in
17435 *\'*) eval set x "$CONFIG_FILES" ;;
17436 *) set x $CONFIG_FILES ;;
17441 # Strip MF so we end up with the name of the file.
17442 mf=`echo "$mf" | sed -e 's/:.*$//'`
17443 # Check whether this is an Automake generated Makefile or not.
17444 # We used to match only the files named `Makefile.in', but
17445 # some people rename them; so instead we look at the file content.
17446 # Grep'ing the first line is not enough: some people post-process
17447 # each Makefile.in and add a new line on top of each file to say so.
17448 # Grep'ing the whole file is not good either: AIX grep has a line
17449 # limit of 2048, but all sed's we know have understand at least 4000.
17450 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17451 dirpart=`$as_dirname -- "$mf" ||
17452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17453 X"$mf" : 'X\(//\)[^/]' \| \
17454 X"$mf" : 'X\(//\)$' \| \
17455 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17461 /^X\(\/\/\)[^/].*/{
17477 # Extract the definition of DEPDIR, am__include, and am__quote
17478 # from the Makefile without running `make'.
17479 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17480 test -z "$DEPDIR" && continue
17481 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17482 test -z "am__include" && continue
17483 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17484 # When using ansi2knr, U may be empty or an underscore; expand it
17485 U=`sed -n 's/^U = //p' < "$mf"`
17486 # Find all dependency output files, they are included files with
17487 # $(DEPDIR) in their names. We invoke sed twice because it is the
17488 # simplest approach to changing $(DEPDIR) to its actual value in the
17490 for file in `sed -n "
17491 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17492 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17493 # Make sure the directory exists.
17494 test -f "$dirpart/$file" && continue
17495 fdir=`$as_dirname -- "$file" ||
17496 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17497 X"$file" : 'X\(//\)[^/]' \| \
17498 X"$file" : 'X\(//\)$' \| \
17499 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17500 $as_echo X"$file" |
17501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17505 /^X\(\/\/\)[^/].*/{
17518 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17519 # echo "creating $dirpart/$file"
17520 echo '# dummy' > "$dirpart/$file"
17527 # See if we are running on zsh, and set the options which allow our
17528 # commands through without removal of \ escapes.
17529 if test -n "${ZSH_VERSION+set}" ; then
17530 setopt NO_GLOB_SUBST
17533 cfgfile="${ofile}T"
17534 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17537 cat <<_LT_EOF >> "$cfgfile"
17540 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17541 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17543 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17545 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17546 # 2006, 2007, 2008 Free Software Foundation, Inc.
17547 # Written by Gordon Matzigkeit, 1996
17549 # This file is part of GNU Libtool.
17551 # GNU Libtool is free software; you can redistribute it and/or
17552 # modify it under the terms of the GNU General Public License as
17553 # published by the Free Software Foundation; either version 2 of
17554 # the License, or (at your option) any later version.
17556 # As a special exception to the GNU General Public License,
17557 # if you distribute this file as part of a program or library that
17558 # is built using GNU Libtool, you may include this file under the
17559 # same distribution terms that you use for the rest of that program.
17561 # GNU Libtool is distributed in the hope that it will be useful,
17562 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17563 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17564 # GNU General Public License for more details.
17566 # You should have received a copy of the GNU General Public License
17567 # along with GNU Libtool; see the file COPYING. If not, a copy
17568 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17569 # obtained by writing to the Free Software Foundation, Inc.,
17570 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17573 # The names of the tagged configurations supported by this script.
17576 # ### BEGIN LIBTOOL CONFIG
17578 # Which release of libtool.m4 was used?
17579 macro_version=$macro_version
17580 macro_revision=$macro_revision
17582 # Assembler program.
17585 # DLL creation program.
17588 # Object dumper program.
17591 # Whether or not to build shared libraries.
17592 build_libtool_libs=$enable_shared
17594 # Whether or not to build static libraries.
17595 build_old_libs=$enable_static
17597 # What type of objects to build.
17600 # Whether or not to optimize for fast installation.
17601 fast_install=$enable_fast_install
17604 host_alias=$host_alias
17608 # The build system.
17609 build_alias=$build_alias
17613 # A sed program that does not truncate output.
17616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17617 Xsed="\$SED -e 1s/^X//"
17619 # A grep program that handles long lines.
17625 # A literal string matcher.
17628 # A BSD- or MS-compatible name lister.
17631 # Whether we need soft or hard links.
17634 # What is the maximum length of a command?
17635 max_cmd_len=$max_cmd_len
17637 # Object file suffix (normally "o").
17640 # Executable file suffix (normally "").
17643 # whether the shell understands "unset".
17646 # turn spaces into newlines.
17649 # turn newlines into spaces.
17652 # How to create reloadable object files.
17653 reload_flag=$lt_reload_flag
17654 reload_cmds=$lt_reload_cmds
17656 # Method to check whether dependent libraries are shared objects.
17657 deplibs_check_method=$lt_deplibs_check_method
17659 # Command to use when deplibs_check_method == "file_magic".
17660 file_magic_cmd=$lt_file_magic_cmd
17664 AR_FLAGS=$lt_AR_FLAGS
17666 # A symbol stripping program.
17669 # Commands used to install an old-style archive.
17671 old_postinstall_cmds=$lt_old_postinstall_cmds
17672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17677 # LTCC compiler flags.
17678 LTCFLAGS=$lt_CFLAGS
17680 # Take the output of nm and produce a listing of raw symbols and C names.
17681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17683 # Transform the output of nm in a proper C declaration.
17684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17686 # Transform the output of nm in a C name address pair.
17687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17689 # Transform the output of nm in a C name address pair when lib prefix is needed.
17690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17692 # The name of the directory that contains temporary libtool files.
17695 # Shell to use when invoking shell scripts.
17698 # An echo program that does not interpret backslashes.
17701 # Used to examine libraries when file_magic_cmd begins with "file".
17702 MAGIC_CMD=$MAGIC_CMD
17704 # Must we lock files when doing compilation?
17705 need_locks=$lt_need_locks
17707 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17708 DSYMUTIL=$lt_DSYMUTIL
17710 # Tool to change global to local symbols on Mac OS X.
17713 # Tool to manipulate fat objects and archives on Mac OS X.
17716 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17719 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17720 OTOOL64=$lt_OTOOL64
17722 # Old archive suffix (normally "a").
17725 # Shared library suffix (normally ".so").
17726 shrext_cmds=$lt_shrext_cmds
17728 # The commands to extract the exported symbol list from a shared archive.
17729 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17731 # Variables whose values should be saved in libtool wrapper scripts and
17732 # restored at link time.
17733 variables_saved_for_relink=$lt_variables_saved_for_relink
17735 # Do we need the "lib" prefix for modules?
17736 need_lib_prefix=$need_lib_prefix
17738 # Do we need a version for libraries?
17739 need_version=$need_version
17741 # Library versioning type.
17742 version_type=$version_type
17744 # Shared library runtime path variable.
17745 runpath_var=$runpath_var
17747 # Shared library path variable.
17748 shlibpath_var=$shlibpath_var
17750 # Is shlibpath searched before the hard-coded library search path?
17751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17753 # Format of library name prefix.
17754 libname_spec=$lt_libname_spec
17756 # List of archive names. First name is the real one, the rest are links.
17757 # The last name is the one that the linker finds with -lNAME
17758 library_names_spec=$lt_library_names_spec
17760 # The coded name of the library, if different from the real name.
17761 soname_spec=$lt_soname_spec
17763 # Command to use after installation of a shared archive.
17764 postinstall_cmds=$lt_postinstall_cmds
17766 # Command to use after uninstallation of a shared archive.
17767 postuninstall_cmds=$lt_postuninstall_cmds
17769 # Commands used to finish a libtool library installation in a directory.
17770 finish_cmds=$lt_finish_cmds
17772 # As "finish_cmds", except a single script fragment to be evaled but
17774 finish_eval=$lt_finish_eval
17776 # Whether we should hardcode library paths into libraries.
17777 hardcode_into_libs=$hardcode_into_libs
17779 # Compile-time system search path for libraries.
17780 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17782 # Run-time system search path for libraries.
17783 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17785 # Whether dlopen is supported.
17786 dlopen_support=$enable_dlopen
17788 # Whether dlopen of programs is supported.
17789 dlopen_self=$enable_dlopen_self
17791 # Whether dlopen of statically linked programs is supported.
17792 dlopen_self_static=$enable_dlopen_self_static
17794 # Commands to strip libraries.
17795 old_striplib=$lt_old_striplib
17796 striplib=$lt_striplib
17799 # The linker used to build libraries.
17802 # Commands used to build an old-style archive.
17803 old_archive_cmds=$lt_old_archive_cmds
17805 # A language specific compiler.
17808 # Is the compiler the GNU compiler?
17811 # Compiler flag to turn off builtin functions.
17812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17814 # How to pass a linker flag through the compiler.
17815 wl=$lt_lt_prog_compiler_wl
17817 # Additional compiler flags for building library objects.
17818 pic_flag=$lt_lt_prog_compiler_pic
17820 # Compiler flag to prevent dynamic linking.
17821 link_static_flag=$lt_lt_prog_compiler_static
17823 # Does compiler simultaneously support -c and -o options?
17824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17826 # Whether or not to add -lc for building shared libraries.
17827 build_libtool_need_lc=$archive_cmds_need_lc
17829 # Whether or not to disallow shared libs when runtime libs are static.
17830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17832 # Compiler flag to allow reflexive dlopens.
17833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17835 # Compiler flag to generate shared objects directly from archives.
17836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17838 # Whether the compiler copes with passing no objects directly.
17839 compiler_needs_object=$lt_compiler_needs_object
17841 # Create an old-style archive from a shared archive.
17842 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17844 # Create a temporary old-style archive to link instead of a shared archive.
17845 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17847 # Commands used to build a shared archive.
17848 archive_cmds=$lt_archive_cmds
17849 archive_expsym_cmds=$lt_archive_expsym_cmds
17851 # Commands used to build a loadable module if different from building
17852 # a shared archive.
17853 module_cmds=$lt_module_cmds
17854 module_expsym_cmds=$lt_module_expsym_cmds
17856 # Whether we are building with GNU ld or not.
17857 with_gnu_ld=$lt_with_gnu_ld
17859 # Flag that allows shared libraries with undefined symbols to be built.
17860 allow_undefined_flag=$lt_allow_undefined_flag
17862 # Flag that enforces no undefined symbols.
17863 no_undefined_flag=$lt_no_undefined_flag
17865 # Flag to hardcode \$libdir into a binary during linking.
17866 # This must work even if \$libdir does not exist
17867 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17869 # If ld is used when linking, flag to hardcode \$libdir into a binary
17870 # during linking. This must work even if \$libdir does not exist.
17871 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17873 # Whether we need a single "-rpath" flag with a separated argument.
17874 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17876 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17877 # DIR into the resulting binary.
17878 hardcode_direct=$hardcode_direct
17880 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17881 # DIR into the resulting binary and the resulting library dependency is
17882 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17883 # library is relocated.
17884 hardcode_direct_absolute=$hardcode_direct_absolute
17886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17887 # into the resulting binary.
17888 hardcode_minus_L=$hardcode_minus_L
17890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17891 # into the resulting binary.
17892 hardcode_shlibpath_var=$hardcode_shlibpath_var
17894 # Set to "yes" if building a shared library automatically hardcodes DIR
17895 # into the library and all subsequent libraries and executables linked
17897 hardcode_automatic=$hardcode_automatic
17899 # Set to yes if linker adds runtime paths of dependent libraries
17900 # to runtime path list.
17901 inherit_rpath=$inherit_rpath
17903 # Whether libtool must link a program against all its dependency libraries.
17904 link_all_deplibs=$link_all_deplibs
17906 # Fix the shell variable \$srcfile for the compiler.
17907 fix_srcfile_path=$lt_fix_srcfile_path
17909 # Set to "yes" if exported symbols are required.
17910 always_export_symbols=$always_export_symbols
17912 # The commands to list exported symbols.
17913 export_symbols_cmds=$lt_export_symbols_cmds
17915 # Symbols that should not be listed in the preloaded symbols.
17916 exclude_expsyms=$lt_exclude_expsyms
17918 # Symbols that must always be exported.
17919 include_expsyms=$lt_include_expsyms
17921 # Commands necessary for linking programs (against libraries) with templates.
17922 prelink_cmds=$lt_prelink_cmds
17924 # Specify filename containing input files.
17925 file_list_spec=$lt_file_list_spec
17927 # How to hardcode a shared library path into an executable.
17928 hardcode_action=$hardcode_action
17930 # ### END LIBTOOL CONFIG
17936 cat <<\_LT_EOF >> "$cfgfile"
17937 # AIX sometimes has problems with the GCC collect2 program. For some
17938 # reason, if we set the COLLECT_NAMES environment variable, the problems
17939 # vanish in a puff of smoke.
17940 if test "X${COLLECT_NAMES+set}" != Xset; then
17942 export COLLECT_NAMES
17949 ltmain="$ac_aux_dir/ltmain.sh"
17952 # We use sed instead of cat because bash on DJGPP gets confused if
17953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17954 # text mode, it properly converts lines to CR/LF. This bash problem
17955 # is reportedly fixed, but why not run on old versions too?
17956 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17957 || (rm -f "$cfgfile"; exit 1)
17961 cat << \_LT_EOF >> "$cfgfile"
17963 # func_dirname file append nondir_replacement
17964 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17965 # otherwise set result to NONDIR_REPLACEMENT.
17969 */*) func_dirname_result="${1%/*}${2}" ;;
17970 * ) func_dirname_result="${3}" ;;
17974 # func_basename file
17977 func_basename_result="${1##*/}"
17980 # func_dirname_and_basename file append nondir_replacement
17981 # perform func_basename and func_dirname in a single function
17983 # dirname: Compute the dirname of FILE. If nonempty,
17984 # add APPEND to the result, otherwise set result
17985 # to NONDIR_REPLACEMENT.
17986 # value returned in "$func_dirname_result"
17987 # basename: Compute filename of FILE.
17988 # value retuned in "$func_basename_result"
17989 # Implementation must be kept synchronized with func_dirname
17990 # and func_basename. For efficiency, we do not delegate to
17991 # those functions but instead duplicate the functionality here.
17992 func_dirname_and_basename ()
17995 */*) func_dirname_result="${1%/*}${2}" ;;
17996 * ) func_dirname_result="${3}" ;;
17998 func_basename_result="${1##*/}"
18001 # func_stripname prefix suffix name
18002 # strip PREFIX and SUFFIX off of NAME.
18003 # PREFIX and SUFFIX must not contain globbing or regex special
18004 # characters, hashes, percent signs, but SUFFIX may contain a leading
18005 # dot (in which case that matches only a dot).
18008 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18009 # positional parameters, so assign one to ordinary parameter first.
18010 func_stripname_result=${3}
18011 func_stripname_result=${func_stripname_result#"${1}"}
18012 func_stripname_result=${func_stripname_result%"${2}"}
18018 func_opt_split_opt=${1%%=*}
18019 func_opt_split_arg=${1#*=}
18026 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18027 *) func_lo2o_result=${1} ;;
18031 # func_xform libobj-or-source
18034 func_xform_result=${1%.*}.lo
18037 # func_arith arithmetic-term...
18040 func_arith_result=$(( $* ))
18044 # STRING may not start with a hyphen.
18047 func_len_result=${#1}
18052 *) # Bourne compatible functions.
18053 cat << \_LT_EOF >> "$cfgfile"
18055 # func_dirname file append nondir_replacement
18056 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18057 # otherwise set result to NONDIR_REPLACEMENT.
18060 # Extract subdirectory from the argument.
18061 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18062 if test "X$func_dirname_result" = "X${1}"; then
18063 func_dirname_result="${3}"
18065 func_dirname_result="$func_dirname_result${2}"
18069 # func_basename file
18072 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18076 # func_stripname prefix suffix name
18077 # strip PREFIX and SUFFIX off of NAME.
18078 # PREFIX and SUFFIX must not contain globbing or regex special
18079 # characters, hashes, percent signs, but SUFFIX may contain a leading
18080 # dot (in which case that matches only a dot).
18081 # func_strip_suffix prefix name
18085 .*) func_stripname_result=`$ECHO "X${3}" \
18086 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18087 *) func_stripname_result=`$ECHO "X${3}" \
18088 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18093 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18094 my_sed_long_arg='1s/^-[^=]*=//'
18099 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18100 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18106 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18109 # func_xform libobj-or-source
18112 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18115 # func_arith arithmetic-term...
18118 func_arith_result=`expr "$@"`
18122 # STRING may not start with a hyphen.
18125 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18131 case $lt_shell_append in
18133 cat << \_LT_EOF >> "$cfgfile"
18135 # func_append var value
18136 # Append VALUE to the end of shell variable VAR.
18144 cat << \_LT_EOF >> "$cfgfile"
18146 # func_append var value
18147 # Append VALUE to the end of shell variable VAR.
18158 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18159 || (rm -f "$cfgfile"; exit 1)
18161 mv -f "$cfgfile" "$ofile" ||
18162 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18173 ac_clean_files=$ac_clean_files_save
18175 test $ac_write_fail = 0 ||
18176 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18179 # configure is writing to config.log, and then calls config.status.
18180 # config.status does its own redirection, appending to config.log.
18181 # Unfortunately, on DOS this fails, as config.log is still kept open
18182 # by configure, so config.status won't be able to write to it; its
18183 # output is simply discarded. So we exec the FD to /dev/null,
18184 # effectively closing config.log, so it can be properly (re)opened and
18185 # appended to by config.status. When coming back to configure, we
18186 # need to make the FD available again.
18187 if test "$no_create" != yes; then
18189 ac_config_status_args=
18190 test "$silent" = yes &&
18191 ac_config_status_args="$ac_config_status_args --quiet"
18193 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18195 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18196 # would make configure fail if this is the last instruction.
18197 $ac_cs_success || as_fn_exit $?
18199 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18201 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18210 echo "------------------------------------------------------------------------"
18211 echo "$PACKAGE $VERSION"
18212 echo "------------------------------------------------------------------------"
18215 echo "Configuration Options Summary:"
18217 echo " Debug...............: ${want_debug}"
18219 echo " Optional support:"
18220 echo " libpng............: ${have_libpng}"
18221 echo " libtiff...........: ${have_libtiff}"
18222 echo " libcms............: ${lcms_output}"
18224 echo " Documentation.......: ${opj_have_doxygen}"
18225 echo " Build.............: make doc"
18227 echo " mj2.................: ${want_mj2}"
18228 echo " jpwl................: ${want_jpwl}"
18229 echo " jpip................: ${want_jpip}"
18230 echo " jpip server.........: ${want_jpip_server}"