f025f43fc4
C libraries *before* we throw the AC_LANG([C++]) switch. This makes the generated configure script use the C compiler/linker instead of the C++ compiler/linker when running tests. This avoids errors like these based on not correctly getting the function signature correct: conftest.cc:36: error: nonnull argument with out-of-range operand number (arg 1, operand 2) This error was causing the configure script to not detect *gettext() routines and not building and installing the *.mo files. This fixes the error noted in the bulk build results: http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
3972 lines
126 KiB
Text
3972 lines
126 KiB
Text
$NetBSD: patch-aa,v 1.1 2006/06/22 18:52:01 jlam Exp $
|
|
|
|
--- configure.orig 2006-06-02 01:58:40.000000000 -0400
|
|
+++ configure
|
|
@@ -20065,31 +20065,184 @@ fi
|
|
|
|
|
|
|
|
-echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
|
|
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
|
|
-if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
|
|
+GETTEXT_PACKAGE=qalculate-units
|
|
+
|
|
+
|
|
+cat >>confdefs.h <<_ACEOF
|
|
+#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
|
|
+_ACEOF
|
|
+
|
|
+
|
|
+ALL_LINGUAS="nl sv"
|
|
+
|
|
+
|
|
+
|
|
+for ac_header in locale.h
|
|
+do
|
|
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
+ echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
else
|
|
- ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lpthread $LIBS"
|
|
+ # Is the header compilable?
|
|
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
+$ac_includes_default
|
|
+#include <$ac_header>
|
|
+_ACEOF
|
|
+rm -f conftest.$ac_objext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
+ (eval $ac_compile) 2>conftest.er1
|
|
+ ac_status=$?
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); } &&
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest.$ac_objext'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; }; then
|
|
+ ac_header_compiler=yes
|
|
+else
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char pthread_create ();
|
|
+ac_header_compiler=no
|
|
+fi
|
|
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
+echo "${ECHO_T}$ac_header_compiler" >&6
|
|
+
|
|
+# Is the header present?
|
|
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
+/* confdefs.h. */
|
|
+_ACEOF
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
+/* end confdefs.h. */
|
|
+#include <$ac_header>
|
|
+_ACEOF
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
+ ac_status=$?
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); } >/dev/null; then
|
|
+ if test -s conftest.err; then
|
|
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
|
|
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
|
+ else
|
|
+ ac_cpp_err=
|
|
+ fi
|
|
+else
|
|
+ ac_cpp_err=yes
|
|
+fi
|
|
+if test -z "$ac_cpp_err"; then
|
|
+ ac_header_preproc=yes
|
|
+else
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
+
|
|
+ ac_header_preproc=no
|
|
+fi
|
|
+rm -f conftest.err conftest.$ac_ext
|
|
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
+echo "${ECHO_T}$ac_header_preproc" >&6
|
|
+
|
|
+# So? What about this header?
|
|
+case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
|
|
+ yes:no: )
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
+ ac_header_preproc=yes
|
|
+ ;;
|
|
+ no:yes:* )
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
+ (
|
|
+ cat <<\_ASBOX
|
|
+## ------------------------------------------ ##
|
|
+## Report this to the AC_PACKAGE_NAME lists. ##
|
|
+## ------------------------------------------ ##
|
|
+_ASBOX
|
|
+ ) |
|
|
+ sed "s/^/$as_me: WARNING: /" >&2
|
|
+ ;;
|
|
+esac
|
|
+echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ eval "$as_ac_Header=\$ac_header_preproc"
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
+
|
|
+fi
|
|
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
+_ACEOF
|
|
+
|
|
+fi
|
|
+
|
|
+done
|
|
+
|
|
+ if test $ac_cv_header_locale_h = yes; then
|
|
+ echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
|
|
+echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
|
|
+if test "${am_cv_val_LC_MESSAGES+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
+/* confdefs.h. */
|
|
+_ACEOF
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
+/* end confdefs.h. */
|
|
+#include <locale.h>
|
|
int
|
|
main ()
|
|
{
|
|
-pthread_create ();
|
|
+return LC_MESSAGES
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -20103,7 +20256,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_c_werror_flag"
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
|| test ! -s conftest.err'
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
(eval $ac_try) 2>&5
|
|
@@ -20116,885 +20269,441 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- ac_cv_lib_pthread_pthread_create=yes
|
|
+ am_cv_val_LC_MESSAGES=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-ac_cv_lib_pthread_pthread_create=no
|
|
+am_cv_val_LC_MESSAGES=no
|
|
fi
|
|
rm -f conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-LIBS=$ac_check_lib_save_LIBS
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
|
|
-echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
|
|
-if test $ac_cv_lib_pthread_pthread_create = yes; then
|
|
- LIBS="$LIBS -lpthread"
|
|
fi
|
|
+echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
|
|
+echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
|
|
+ if test $am_cv_val_LC_MESSAGES = yes; then
|
|
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
+#define HAVE_LC_MESSAGES 1
|
|
+_ACEOF
|
|
|
|
-ac_ext=cc
|
|
-ac_cpp='$CXXCPP $CPPFLAGS'
|
|
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
-
|
|
-
|
|
-
|
|
-# Check whether --with-cln-prefix or --without-cln-prefix was given.
|
|
-if test "${with_cln_prefix+set}" = set; then
|
|
- withval="$with_cln_prefix"
|
|
- cln_config_prefix="$withval"
|
|
-else
|
|
- cln_config_prefix=""
|
|
-fi;
|
|
+ fi
|
|
+ fi
|
|
+ USE_NLS=yes
|
|
|
|
-# Check whether --with-cln-exec-prefix or --without-cln-exec-prefix was given.
|
|
-if test "${with_cln_exec_prefix+set}" = set; then
|
|
- withval="$with_cln_exec_prefix"
|
|
- cln_config_exec_prefix="$withval"
|
|
-else
|
|
- cln_config_exec_prefix=""
|
|
-fi;
|
|
-# Check whether --enable-clntest or --disable-clntest was given.
|
|
-if test "${enable_clntest+set}" = set; then
|
|
- enableval="$enable_clntest"
|
|
|
|
-else
|
|
- enable_clntest=yes
|
|
-fi;
|
|
+ gt_cv_have_gettext=no
|
|
|
|
-if test x$cln_config_exec_prefix != x ; then
|
|
- cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix"
|
|
- if test x${CLN_CONFIG+set} != xset ; then
|
|
- CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config
|
|
- fi
|
|
-fi
|
|
-if test x$cln_config_prefix != x ; then
|
|
- cln_config_args="$cln_config_args --prefix=$cln_config_prefix"
|
|
- if test x${CLN_CONFIG+set} != xset ; then
|
|
- CLN_CONFIG=$cln_config_prefix/bin/cln-config
|
|
- fi
|
|
-fi
|
|
+ CATOBJEXT=NONE
|
|
+ XGETTEXT=:
|
|
+ INTLLIBS=
|
|
|
|
-# Extract the first word of "cln-config", so it can be a program name with args.
|
|
-set dummy cln-config; ac_word=$2
|
|
-echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
-if test "${ac_cv_path_CLN_CONFIG+set}" = set; then
|
|
+ if test "${ac_cv_header_libintl_h+set}" = set; then
|
|
+ echo "$as_me:$LINENO: checking for libintl.h" >&5
|
|
+echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
|
|
+if test "${ac_cv_header_libintl_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
|
|
+echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
|
|
else
|
|
- case $CLN_CONFIG in
|
|
- [\\/]* | ?:[\\/]*)
|
|
- ac_cv_path_CLN_CONFIG="$CLN_CONFIG" # Let the user override the test with a path.
|
|
- ;;
|
|
- *)
|
|
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
-for as_dir in $PATH
|
|
-do
|
|
- IFS=$as_save_IFS
|
|
- test -z "$as_dir" && as_dir=.
|
|
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_path_CLN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
- break 2
|
|
- fi
|
|
-done
|
|
-done
|
|
-
|
|
- test -z "$ac_cv_path_CLN_CONFIG" && ac_cv_path_CLN_CONFIG="no"
|
|
- ;;
|
|
-esac
|
|
-fi
|
|
-CLN_CONFIG=$ac_cv_path_CLN_CONFIG
|
|
-
|
|
-if test -n "$CLN_CONFIG"; then
|
|
- echo "$as_me:$LINENO: result: $CLN_CONFIG" >&5
|
|
-echo "${ECHO_T}$CLN_CONFIG" >&6
|
|
-else
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
-fi
|
|
-
|
|
-cln_min_version=1.1.0
|
|
-echo "$as_me:$LINENO: checking for CLN - version >= $cln_min_version" >&5
|
|
-echo $ECHO_N "checking for CLN - version >= $cln_min_version... $ECHO_C" >&6
|
|
-if test "$CLN_CONFIG" = "no" ; then
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
- echo "*** The cln-config script installed by CLN could not be found"
|
|
- echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in"
|
|
- echo "*** your path, or set the CLN_CONFIG environment variable to the"
|
|
- echo "*** full path to cln-config."
|
|
- { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5
|
|
-echo "$as_me: error: No suitable installed version of CLN could be found." >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
-else
|
|
- cln_min_major_version=`echo $cln_min_version | \
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
- cln_min_minor_version=`echo $cln_min_version | \
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
- cln_min_micro_version=`echo $cln_min_version | \
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
- CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags`
|
|
- CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs`
|
|
- cln_config_version=`$CLN_CONFIG $cln_config_args --version`
|
|
- cln_config_major_version=`echo $cln_config_version | \
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
- cln_config_minor_version=`echo $cln_config_version | \
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
- cln_config_micro_version=`echo $cln_config_version | \
|
|
- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
- if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \
|
|
- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \
|
|
- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then
|
|
- echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version"
|
|
- echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is"
|
|
- echo "*** best to upgrade to the required version."
|
|
- echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG"
|
|
- echo "*** to point to the correct copy of cln-config, and remove the file"
|
|
- echo "*** config.cache before re-running configure."
|
|
- { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5
|
|
-echo "$as_me: error: No suitable installed version of CLN could be found." >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
- else
|
|
- no_cln=""
|
|
- if test "x$enable_clntest" = "xyes" ; then
|
|
- ac_save_CPPFLAGS="$CPPFLAGS"
|
|
- ac_save_LIBS="$LIBS"
|
|
- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
|
|
- LIBS="$LIBS $CLN_LIBS"
|
|
- rm -f conf.clntest
|
|
- if test "$cross_compiling" = yes; then
|
|
- echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
-else
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
+ # Is the header compilable?
|
|
+echo "$as_me:$LINENO: checking libintl.h usability" >&5
|
|
+echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-
|
|
-#include <stdio.h>
|
|
-#include <string.h>
|
|
-#include <cln/version.h>
|
|
-
|
|
-/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a
|
|
- prototype for exit() that conflicts with the one in stdlib.h */
|
|
-extern "C" int system(const char *);
|
|
-
|
|
-int main(void)
|
|
-{
|
|
- system("touch conf.clntest");
|
|
-
|
|
- if ((CL_VERSION_MAJOR != $cln_config_major_version) ||
|
|
- (CL_VERSION_MINOR != $cln_config_minor_version) ||
|
|
- (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) {
|
|
- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
|
|
- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL);
|
|
- printf("*** is corrupted or you have specified some wrong -I compiler flags.\n");
|
|
- printf("*** Please inquire and consider reinstalling CLN.\n");
|
|
- return 1;
|
|
- }
|
|
- if ((cln::version_major != $cln_config_major_version) ||
|
|
- (cln::version_minor != $cln_config_minor_version) ||
|
|
- (cln::version_patchlevel != $cln_config_micro_version)) {
|
|
- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
|
|
- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel);
|
|
- printf("*** is corrupted or you have specified some wrong -L compiler flags.\n");
|
|
- printf("*** Please inquire and consider reinstalling CLN.\n");
|
|
- return 1;
|
|
- }
|
|
- return 0;
|
|
-}
|
|
-
|
|
+$ac_includes_default
|
|
+#include <libintl.h>
|
|
_ACEOF
|
|
-rm -f conftest$ac_exeext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>&5
|
|
+rm -f conftest.$ac_objext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
+ (eval $ac_compile) 2>conftest.er1
|
|
ac_status=$?
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
+ (exit $ac_status); } &&
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest.$ac_objext'
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
(eval $ac_try) 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- :
|
|
+ ac_header_compiler=yes
|
|
else
|
|
- echo "$as_me: program exited with status $ac_status" >&5
|
|
-echo "$as_me: failed program was:" >&5
|
|
+ echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-( exit $ac_status )
|
|
-no_cln=yes
|
|
-fi
|
|
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
+ac_header_compiler=no
|
|
fi
|
|
- CPPFLAGS="$ac_save_CPPFLAGS"
|
|
- LIBS="$ac_save_LIBS"
|
|
- fi
|
|
- if test "x$no_cln" = x ; then
|
|
- echo "$as_me:$LINENO: result: yes, $cln_config_version" >&5
|
|
-echo "${ECHO_T}yes, $cln_config_version" >&6
|
|
-
|
|
- LIBS="$LIBS $CLN_LIBS"
|
|
- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
|
|
-
|
|
-cat >>confdefs.h <<\_ACEOF
|
|
-#define HAVE_LIBCLN 1
|
|
-_ACEOF
|
|
-
|
|
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
+echo "${ECHO_T}$ac_header_compiler" >&6
|
|
|
|
- else
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
- if test ! -f conf.clntest ; then
|
|
- echo "*** Could not run CLN test program, checking why..."
|
|
- CPPFLAGS="$CFLAGS $CLN_CPPFLAGS"
|
|
- LIBS="$LIBS $CLN_LIBS"
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
+# Is the header present?
|
|
+echo "$as_me:$LINENO: checking libintl.h presence" >&5
|
|
+echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-
|
|
-#include <stdio.h>
|
|
-#include <cln/version.h>
|
|
-
|
|
-int
|
|
-main ()
|
|
-{
|
|
- return 0;
|
|
- ;
|
|
- return 0;
|
|
-}
|
|
+#include <libintl.h>
|
|
_ACEOF
|
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>conftest.er1
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest$ac_exeext'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; }; then
|
|
- echo "*** The test program compiled, but did not run. This usually means"
|
|
- echo "*** that the run-time linker is not finding CLN or finding the wrong"
|
|
- echo "*** version of CLN. If it is not finding CLN, you'll need to set your"
|
|
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
- echo "*** to the installed location. Also, make sure you have run ldconfig if that"
|
|
- echo "*** is required on your system."
|
|
+ (exit $ac_status); } >/dev/null; then
|
|
+ if test -s conftest.err; then
|
|
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
|
|
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
|
+ else
|
|
+ ac_cpp_err=
|
|
+ fi
|
|
+else
|
|
+ ac_cpp_err=yes
|
|
+fi
|
|
+if test -z "$ac_cpp_err"; then
|
|
+ ac_header_preproc=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
- echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
- echo "*** exact error that occured. This usually means CLN was incorrectly installed"
|
|
- echo "*** or that you have moved CLN since it was installed. In the latter case, you"
|
|
- echo "*** may want to edit the cln-config script: $CLN_CONFIG."
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
- CPPFLAGS="$ac_save_CPPFLAGS"
|
|
- LIBS="$ac_save_LIBS"
|
|
- fi
|
|
- CLN_CPPFLAGS=""
|
|
- CLN_LIBS=""
|
|
- { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5
|
|
-echo "$as_me: error: No suitable installed version of CLN could be found." >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
- fi
|
|
- fi
|
|
+ ac_header_preproc=no
|
|
fi
|
|
+rm -f conftest.err conftest.$ac_ext
|
|
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
+echo "${ECHO_T}$ac_header_preproc" >&6
|
|
|
|
-
|
|
-rm -f conf.clntest
|
|
-
|
|
-
|
|
-
|
|
-
|
|
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|
- if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
-echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
-if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
|
|
+# So? What about this header?
|
|
+case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
|
|
+ yes:no: )
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
+echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
|
|
+echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
|
|
+ ac_header_preproc=yes
|
|
+ ;;
|
|
+ no:yes:* )
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
|
|
+echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
|
|
+echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
|
|
+echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
+echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
|
|
+echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
|
|
+ { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
|
|
+echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
|
|
+ (
|
|
+ cat <<\_ASBOX
|
|
+## ------------------------------------------ ##
|
|
+## Report this to the AC_PACKAGE_NAME lists. ##
|
|
+## ------------------------------------------ ##
|
|
+_ASBOX
|
|
+ ) |
|
|
+ sed "s/^/$as_me: WARNING: /" >&2
|
|
+ ;;
|
|
+esac
|
|
+echo "$as_me:$LINENO: checking for libintl.h" >&5
|
|
+echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
|
|
+if test "${ac_cv_header_libintl_h+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- case $PKG_CONFIG in
|
|
- [\\/]* | ?:[\\/]*)
|
|
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
- ;;
|
|
- *)
|
|
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
-for as_dir in $PATH
|
|
-do
|
|
- IFS=$as_save_IFS
|
|
- test -z "$as_dir" && as_dir=.
|
|
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
- break 2
|
|
- fi
|
|
-done
|
|
-done
|
|
-
|
|
- ;;
|
|
-esac
|
|
+ ac_cv_header_libintl_h=$ac_header_preproc
|
|
fi
|
|
-PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
|
+echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
|
|
+echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
|
|
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
|
|
-echo "${ECHO_T}$PKG_CONFIG" >&6
|
|
-else
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
fi
|
|
+if test $ac_cv_header_libintl_h = yes; then
|
|
+ gt_cv_func_dgettext_libintl="no"
|
|
+ libintl_extra_libs=""
|
|
|
|
-fi
|
|
-if test -z "$ac_cv_path_PKG_CONFIG"; then
|
|
- ac_pt_PKG_CONFIG=$PKG_CONFIG
|
|
- # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
-set dummy pkg-config; ac_word=$2
|
|
-echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
-if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
|
|
+ #
|
|
+ # First check in libc
|
|
+ #
|
|
+ echo "$as_me:$LINENO: checking for ngettext in libc" >&5
|
|
+echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
|
|
+if test "${gt_cv_func_ngettext_libc+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- case $ac_pt_PKG_CONFIG in
|
|
- [\\/]* | ?:[\\/]*)
|
|
- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
|
- ;;
|
|
- *)
|
|
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
-for as_dir in $PATH
|
|
-do
|
|
- IFS=$as_save_IFS
|
|
- test -z "$as_dir" && as_dir=.
|
|
- for ac_exec_ext in '' $ac_executable_extensions; do
|
|
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
- break 2
|
|
- fi
|
|
-done
|
|
-done
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
+/* confdefs.h. */
|
|
+_ACEOF
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
+/* end confdefs.h. */
|
|
|
|
- ;;
|
|
-esac
|
|
-fi
|
|
-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
|
+#include <libintl.h>
|
|
|
|
-if test -n "$ac_pt_PKG_CONFIG"; then
|
|
- echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
|
|
-echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
|
|
+int
|
|
+main ()
|
|
+{
|
|
+return !ngettext ("","", 1)
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
+ ac_status=$?
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); } &&
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; }; then
|
|
+ gt_cv_func_ngettext_libc=yes
|
|
else
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
-fi
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
- PKG_CONFIG=$ac_pt_PKG_CONFIG
|
|
-else
|
|
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
|
+gt_cv_func_ngettext_libc=no
|
|
fi
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
|
fi
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- _pkg_min_version=0.9.0
|
|
- echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
|
|
-echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
|
|
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|
- echo "$as_me:$LINENO: result: yes" >&5
|
|
-echo "${ECHO_T}yes" >&6
|
|
- else
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
- PKG_CONFIG=""
|
|
- fi
|
|
+echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
|
|
+echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
|
|
|
|
-fi
|
|
+ if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
|
+ echo "$as_me:$LINENO: checking for dgettext in libc" >&5
|
|
+echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
|
|
+if test "${gt_cv_func_dgettext_libc+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
+/* confdefs.h. */
|
|
+_ACEOF
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
+/* end confdefs.h. */
|
|
|
|
-pkg_failed=no
|
|
-echo "$as_me:$LINENO: checking for GLIB" >&5
|
|
-echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
|
|
+#include <libintl.h>
|
|
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- if test -n "$GLIB_CFLAGS"; then
|
|
- pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
|
|
- else
|
|
- if test -n "$PKG_CONFIG" && \
|
|
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- \"") >&5
|
|
- ($PKG_CONFIG --exists --print-errors "
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- ") 2>&5
|
|
+int
|
|
+main ()
|
|
+{
|
|
+return !dgettext ("","")
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
ac_status=$?
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; then
|
|
- pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- " 2>/dev/null`
|
|
-else
|
|
- pkg_failed=yes
|
|
-fi
|
|
- fi
|
|
-else
|
|
- pkg_failed=untried
|
|
-fi
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- if test -n "$GLIB_LIBS"; then
|
|
- pkg_cv_GLIB_LIBS="$GLIB_LIBS"
|
|
- else
|
|
- if test -n "$PKG_CONFIG" && \
|
|
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- \"") >&5
|
|
- ($PKG_CONFIG --exists --print-errors "
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- ") 2>&5
|
|
+ (exit $ac_status); } &&
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; then
|
|
- pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- " 2>/dev/null`
|
|
-else
|
|
- pkg_failed=yes
|
|
-fi
|
|
- fi
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; }; then
|
|
+ gt_cv_func_dgettext_libc=yes
|
|
else
|
|
- pkg_failed=untried
|
|
-fi
|
|
-
|
|
-
|
|
-
|
|
-if test $pkg_failed = yes; then
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
- _pkg_short_errors_supported=yes
|
|
-else
|
|
- _pkg_short_errors_supported=no
|
|
+gt_cv_func_dgettext_libc=no
|
|
fi
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
- GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- "`
|
|
- else
|
|
- GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- "`
|
|
- fi
|
|
- # Put the nasty error message in config.log where it belongs
|
|
- echo "$GLIB_PKG_ERRORS" >&5
|
|
-
|
|
- { { echo "$as_me:$LINENO: error: Package requirements (
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- ) were not met:
|
|
-
|
|
-$GLIB_PKG_ERRORS
|
|
-
|
|
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
-installed software in a non-standard prefix.
|
|
-
|
|
-Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
-and GLIB_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-" >&5
|
|
-echo "$as_me: error: Package requirements (
|
|
- glib-2.0 >= 2.4
|
|
- libxml-2.0
|
|
- ) were not met:
|
|
-
|
|
-$GLIB_PKG_ERRORS
|
|
-
|
|
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
-installed software in a non-standard prefix.
|
|
-
|
|
-Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
-and GLIB_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-" >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
-elif test $pkg_failed = untried; then
|
|
- { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
|
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
-path to pkg-config.
|
|
-
|
|
-Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
-and GLIB_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
|
|
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
-See \`config.log' for more details." >&5
|
|
-echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
|
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
-path to pkg-config.
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
|
|
+echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
|
|
+ fi
|
|
|
|
-Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
-and GLIB_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
+ if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
|
|
|
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
-See \`config.log' for more details." >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
+for ac_func in bind_textdomain_codeset
|
|
+do
|
|
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
+echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
|
+if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
|
|
- GLIB_LIBS=$pkg_cv_GLIB_LIBS
|
|
- echo "$as_me:$LINENO: result: yes" >&5
|
|
-echo "${ECHO_T}yes" >&6
|
|
- :
|
|
-fi
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
+/* confdefs.h. */
|
|
+_ACEOF
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
+/* end confdefs.h. */
|
|
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
+#define $ac_func innocuous_$ac_func
|
|
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func (); below.
|
|
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
+ <limits.h> exists even on freestanding compilers. */
|
|
|
|
+#ifdef __STDC__
|
|
+# include <limits.h>
|
|
+#else
|
|
+# include <assert.h>
|
|
+#endif
|
|
|
|
+#undef $ac_func
|
|
|
|
-pkg_failed=no
|
|
-echo "$as_me:$LINENO: checking for GTK" >&5
|
|
-echo $ECHO_N "checking for GTK... $ECHO_C" >&6
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+{
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func ();
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+char (*f) () = $ac_func;
|
|
+#endif
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- if test -n "$GTK_CFLAGS"; then
|
|
- pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
|
|
- else
|
|
- if test -n "$PKG_CONFIG" && \
|
|
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- \"") >&5
|
|
- ($PKG_CONFIG --exists --print-errors "
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- ") 2>&5
|
|
+int
|
|
+main ()
|
|
+{
|
|
+return f != $ac_func;
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
ac_status=$?
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
+ rm -f conftest.er1
|
|
+ cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; then
|
|
- pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- " 2>/dev/null`
|
|
-else
|
|
- pkg_failed=yes
|
|
-fi
|
|
- fi
|
|
-else
|
|
- pkg_failed=untried
|
|
-fi
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- if test -n "$GTK_LIBS"; then
|
|
- pkg_cv_GTK_LIBS="$GTK_LIBS"
|
|
- else
|
|
- if test -n "$PKG_CONFIG" && \
|
|
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- \"") >&5
|
|
- ($PKG_CONFIG --exists --print-errors "
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- ") 2>&5
|
|
+ (exit $ac_status); } &&
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; then
|
|
- pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- " 2>/dev/null`
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; }; then
|
|
+ eval "$as_ac_var=yes"
|
|
else
|
|
- pkg_failed=yes
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
+
|
|
+eval "$as_ac_var=no"
|
|
fi
|
|
- fi
|
|
-else
|
|
- pkg_failed=untried
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
fi
|
|
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
|
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
|
+if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
+_ACEOF
|
|
|
|
+fi
|
|
+done
|
|
|
|
+ fi
|
|
|
|
-if test $pkg_failed = yes; then
|
|
+ #
|
|
+ # If we don't have everything we want, check in libintl
|
|
+ #
|
|
+ if test "$gt_cv_func_dgettext_libc" != "yes" \
|
|
+ || test "$gt_cv_func_ngettext_libc" != "yes" \
|
|
+ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
|
|
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
- _pkg_short_errors_supported=yes
|
|
+ echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
|
|
+echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
|
|
+if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- _pkg_short_errors_supported=no
|
|
-fi
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
- GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- "`
|
|
- else
|
|
- GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- "`
|
|
- fi
|
|
- # Put the nasty error message in config.log where it belongs
|
|
- echo "$GTK_PKG_ERRORS" >&5
|
|
-
|
|
- { { echo "$as_me:$LINENO: error: Package requirements (
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- ) were not met:
|
|
-
|
|
-$GTK_PKG_ERRORS
|
|
-
|
|
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
-installed software in a non-standard prefix.
|
|
-
|
|
-Alternatively, you may set the environment variables GTK_CFLAGS
|
|
-and GTK_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-" >&5
|
|
-echo "$as_me: error: Package requirements (
|
|
- gtk+-2.0 >= 2.4
|
|
- gdk-pixbuf-2.0
|
|
- ) were not met:
|
|
-
|
|
-$GTK_PKG_ERRORS
|
|
-
|
|
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
-installed software in a non-standard prefix.
|
|
-
|
|
-Alternatively, you may set the environment variables GTK_CFLAGS
|
|
-and GTK_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-" >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
-elif test $pkg_failed = untried; then
|
|
- { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
|
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
-path to pkg-config.
|
|
-
|
|
-Alternatively, you may set the environment variables GTK_CFLAGS
|
|
-and GTK_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-
|
|
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
-See \`config.log' for more details." >&5
|
|
-echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
|
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
-path to pkg-config.
|
|
-
|
|
-Alternatively, you may set the environment variables GTK_CFLAGS
|
|
-and GTK_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-
|
|
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
-See \`config.log' for more details." >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
-else
|
|
- GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
|
|
- GTK_LIBS=$pkg_cv_GTK_LIBS
|
|
- echo "$as_me:$LINENO: result: yes" >&5
|
|
-echo "${ECHO_T}yes" >&6
|
|
- :
|
|
-fi
|
|
-
|
|
-
|
|
-
|
|
-
|
|
-pkg_failed=no
|
|
-echo "$as_me:$LINENO: checking for QALCULATE" >&5
|
|
-echo $ECHO_N "checking for QALCULATE... $ECHO_C" >&6
|
|
-
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- if test -n "$QALCULATE_CFLAGS"; then
|
|
- pkg_cv_QALCULATE_CFLAGS="$QALCULATE_CFLAGS"
|
|
- else
|
|
- if test -n "$PKG_CONFIG" && \
|
|
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
- libqalculate >= 0.9.4
|
|
- \"") >&5
|
|
- ($PKG_CONFIG --exists --print-errors "
|
|
- libqalculate >= 0.9.4
|
|
- ") 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; then
|
|
- pkg_cv_QALCULATE_CFLAGS=`$PKG_CONFIG --cflags "
|
|
- libqalculate >= 0.9.4
|
|
- " 2>/dev/null`
|
|
-else
|
|
- pkg_failed=yes
|
|
-fi
|
|
- fi
|
|
-else
|
|
- pkg_failed=untried
|
|
-fi
|
|
-if test -n "$PKG_CONFIG"; then
|
|
- if test -n "$QALCULATE_LIBS"; then
|
|
- pkg_cv_QALCULATE_LIBS="$QALCULATE_LIBS"
|
|
- else
|
|
- if test -n "$PKG_CONFIG" && \
|
|
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
- libqalculate >= 0.9.4
|
|
- \"") >&5
|
|
- ($PKG_CONFIG --exists --print-errors "
|
|
- libqalculate >= 0.9.4
|
|
- ") 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; then
|
|
- pkg_cv_QALCULATE_LIBS=`$PKG_CONFIG --libs "
|
|
- libqalculate >= 0.9.4
|
|
- " 2>/dev/null`
|
|
-else
|
|
- pkg_failed=yes
|
|
-fi
|
|
- fi
|
|
-else
|
|
- pkg_failed=untried
|
|
-fi
|
|
-
|
|
-
|
|
-
|
|
-if test $pkg_failed = yes; then
|
|
-
|
|
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
- _pkg_short_errors_supported=yes
|
|
-else
|
|
- _pkg_short_errors_supported=no
|
|
-fi
|
|
- if test $_pkg_short_errors_supported = yes; then
|
|
- QALCULATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
|
|
- libqalculate >= 0.9.4
|
|
- "`
|
|
- else
|
|
- QALCULATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
|
- libqalculate >= 0.9.4
|
|
- "`
|
|
- fi
|
|
- # Put the nasty error message in config.log where it belongs
|
|
- echo "$QALCULATE_PKG_ERRORS" >&5
|
|
-
|
|
- { { echo "$as_me:$LINENO: error: Package requirements (
|
|
- libqalculate >= 0.9.4
|
|
- ) were not met:
|
|
-
|
|
-$QALCULATE_PKG_ERRORS
|
|
-
|
|
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
-installed software in a non-standard prefix.
|
|
-
|
|
-Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
-and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-" >&5
|
|
-echo "$as_me: error: Package requirements (
|
|
- libqalculate >= 0.9.4
|
|
- ) were not met:
|
|
-
|
|
-$QALCULATE_PKG_ERRORS
|
|
-
|
|
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
-installed software in a non-standard prefix.
|
|
-
|
|
-Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
-and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-" >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
-elif test $pkg_failed = untried; then
|
|
- { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
|
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
-path to pkg-config.
|
|
-
|
|
-Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
-and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-
|
|
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
-See \`config.log' for more details." >&5
|
|
-echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
|
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
-path to pkg-config.
|
|
-
|
|
-Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
-and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
-See the pkg-config man page for more details.
|
|
-
|
|
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
-See \`config.log' for more details." >&2;}
|
|
- { (exit 1); exit 1; }; }
|
|
-else
|
|
- QALCULATE_CFLAGS=$pkg_cv_QALCULATE_CFLAGS
|
|
- QALCULATE_LIBS=$pkg_cv_QALCULATE_LIBS
|
|
- echo "$as_me:$LINENO: result: yes" >&5
|
|
-echo "${ECHO_T}yes" >&6
|
|
- :
|
|
-fi
|
|
-
|
|
-
|
|
-
|
|
-
|
|
-GETTEXT_PACKAGE=qalculate-units
|
|
-
|
|
-
|
|
-cat >>confdefs.h <<_ACEOF
|
|
-#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
|
|
-_ACEOF
|
|
-
|
|
-
|
|
-ALL_LINGUAS="nl sv"
|
|
-
|
|
-
|
|
-
|
|
-for ac_header in locale.h
|
|
-do
|
|
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
- echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
-else
|
|
- # Is the header compilable?
|
|
-echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
|
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
+LIBS="-lintl $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-$ac_includes_default
|
|
-#include <$ac_header>
|
|
+
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char bindtextdomain ();
|
|
+int
|
|
+main ()
|
|
+{
|
|
+bindtextdomain ();
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
_ACEOF
|
|
-rm -f conftest.$ac_objext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
- (eval $ac_compile) 2>conftest.er1
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
@@ -21002,138 +20711,57 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
{ ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest.$ac_objext'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; }; then
|
|
- ac_header_compiler=yes
|
|
-else
|
|
- echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
-
|
|
-ac_header_compiler=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
-echo "${ECHO_T}$ac_header_compiler" >&6
|
|
-
|
|
-# Is the header present?
|
|
-echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
|
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
|
-cat >conftest.$ac_ext <<_ACEOF
|
|
-/* confdefs.h. */
|
|
-_ACEOF
|
|
-cat confdefs.h >>conftest.$ac_ext
|
|
-cat >>conftest.$ac_ext <<_ACEOF
|
|
-/* end confdefs.h. */
|
|
-#include <$ac_header>
|
|
-_ACEOF
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
- ac_status=$?
|
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } >/dev/null; then
|
|
- if test -s conftest.err; then
|
|
- ac_cpp_err=$ac_cxx_preproc_warn_flag
|
|
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
|
- else
|
|
- ac_cpp_err=
|
|
- fi
|
|
-else
|
|
- ac_cpp_err=yes
|
|
-fi
|
|
-if test -z "$ac_cpp_err"; then
|
|
- ac_header_preproc=yes
|
|
-else
|
|
- echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
-
|
|
- ac_header_preproc=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
-echo "${ECHO_T}$ac_header_preproc" >&6
|
|
-
|
|
-# So? What about this header?
|
|
-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
|
|
- yes:no: )
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
|
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
|
- ac_header_preproc=yes
|
|
- ;;
|
|
- no:yes:* )
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
|
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
|
-echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
|
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
|
-echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
|
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
|
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
|
- (
|
|
- cat <<\_ASBOX
|
|
-## ------------------------------------------ ##
|
|
-## Report this to the AC_PACKAGE_NAME lists. ##
|
|
-## ------------------------------------------ ##
|
|
-_ASBOX
|
|
- ) |
|
|
- sed "s/^/$as_me: WARNING: /" >&2
|
|
- ;;
|
|
-esac
|
|
-echo "$as_me:$LINENO: checking for $ac_header" >&5
|
|
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
|
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; }; then
|
|
+ ac_cv_lib_intl_bindtextdomain=yes
|
|
else
|
|
- eval "$as_ac_Header=\$ac_header_preproc"
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
|
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
|
+ echo "$as_me: failed program was:" >&5
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
+ac_cv_lib_intl_bindtextdomain=no
|
|
fi
|
|
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
|
- cat >>confdefs.h <<_ACEOF
|
|
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
|
-_ACEOF
|
|
-
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
-
|
|
-done
|
|
-
|
|
- if test $ac_cv_header_locale_h = yes; then
|
|
- echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
|
|
-echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
|
|
-if test "${am_cv_val_LC_MESSAGES+set}" = set; then
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
|
|
+echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
|
|
+if test $ac_cv_lib_intl_bindtextdomain = yes; then
|
|
+ echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
|
|
+echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
|
|
+if test "${ac_cv_lib_intl_ngettext+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
+LIBS="-lintl $LIBS"
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-#include <locale.h>
|
|
+
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char ngettext ();
|
|
int
|
|
main ()
|
|
{
|
|
-return LC_MESSAGES
|
|
+ngettext ();
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -21160,59 +20788,52 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- am_cv_val_LC_MESSAGES=yes
|
|
+ ac_cv_lib_intl_ngettext=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-am_cv_val_LC_MESSAGES=no
|
|
+ac_cv_lib_intl_ngettext=no
|
|
fi
|
|
rm -f conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
-echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
|
|
-echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
|
|
- if test $am_cv_val_LC_MESSAGES = yes; then
|
|
-
|
|
-cat >>confdefs.h <<\_ACEOF
|
|
-#define HAVE_LC_MESSAGES 1
|
|
-_ACEOF
|
|
-
|
|
- fi
|
|
- fi
|
|
- USE_NLS=yes
|
|
-
|
|
-
|
|
- gt_cv_have_gettext=no
|
|
-
|
|
- CATOBJEXT=NONE
|
|
- XGETTEXT=:
|
|
- INTLLIBS=
|
|
-
|
|
- if test "${ac_cv_header_libintl_h+set}" = set; then
|
|
- echo "$as_me:$LINENO: checking for libintl.h" >&5
|
|
-echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
|
|
-if test "${ac_cv_header_libintl_h+set}" = set; then
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
|
|
+echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
|
|
+if test $ac_cv_lib_intl_ngettext = yes; then
|
|
+ echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
|
|
+echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
|
|
+if test "${ac_cv_lib_intl_dgettext+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
|
|
-echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
|
|
else
|
|
- # Is the header compilable?
|
|
-echo "$as_me:$LINENO: checking libintl.h usability" >&5
|
|
-echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
+LIBS="-lintl $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-$ac_includes_default
|
|
-#include <libintl.h>
|
|
+
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char dgettext ();
|
|
+int
|
|
+main ()
|
|
+{
|
|
+dgettext ();
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
_ACEOF
|
|
-rm -f conftest.$ac_objext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
- (eval $ac_compile) 2>conftest.er1
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
@@ -21226,131 +20847,129 @@ if { (eval echo "$as_me:$LINENO: \"$ac_c
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest.$ac_objext'
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
(eval $ac_try) 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- ac_header_compiler=yes
|
|
+ ac_cv_lib_intl_dgettext=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-ac_header_compiler=no
|
|
+ac_cv_lib_intl_dgettext=no
|
|
+fi
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
|
|
+echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
|
|
+if test $ac_cv_lib_intl_dgettext = yes; then
|
|
+ gt_cv_func_dgettext_libintl=yes
|
|
fi
|
|
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
|
-echo "${ECHO_T}$ac_header_compiler" >&6
|
|
|
|
-# Is the header present?
|
|
-echo "$as_me:$LINENO: checking libintl.h presence" >&5
|
|
-echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
|
|
+fi
|
|
+
|
|
+fi
|
|
+
|
|
+
|
|
+ if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
|
|
+ echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
|
|
+echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
|
|
+ echo "$as_me:$LINENO: result: " >&5
|
|
+echo "${ECHO_T}" >&6
|
|
+ echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
|
|
+echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
|
|
+if test "${ac_cv_lib_intl_ngettext+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
+LIBS="-lintl -liconv $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-#include <libintl.h>
|
|
+
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char ngettext ();
|
|
+int
|
|
+main ()
|
|
+{
|
|
+ngettext ();
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
_ACEOF
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
|
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
+ (eval $ac_link) 2>conftest.er1
|
|
ac_status=$?
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
|
rm -f conftest.er1
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } >/dev/null; then
|
|
- if test -s conftest.err; then
|
|
- ac_cpp_err=$ac_cxx_preproc_warn_flag
|
|
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
|
|
- else
|
|
- ac_cpp_err=
|
|
- fi
|
|
-else
|
|
- ac_cpp_err=yes
|
|
-fi
|
|
-if test -z "$ac_cpp_err"; then
|
|
- ac_header_preproc=yes
|
|
+ (exit $ac_status); } &&
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ || test ! -s conftest.err'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; } &&
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
+ (eval $ac_try) 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; }; then
|
|
+ ac_cv_lib_intl_ngettext=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
-
|
|
- ac_header_preproc=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_ext
|
|
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
|
-echo "${ECHO_T}$ac_header_preproc" >&6
|
|
-
|
|
-# So? What about this header?
|
|
-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
|
|
- yes:no: )
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
|
-echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
|
|
-echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
|
|
- ac_header_preproc=yes
|
|
- ;;
|
|
- no:yes:* )
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
|
|
-echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
|
|
-echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
|
|
-echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
|
|
-echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
|
|
-echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
|
|
- { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
|
|
-echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
|
|
- (
|
|
- cat <<\_ASBOX
|
|
-## ------------------------------------------ ##
|
|
-## Report this to the AC_PACKAGE_NAME lists. ##
|
|
-## ------------------------------------------ ##
|
|
-_ASBOX
|
|
- ) |
|
|
- sed "s/^/$as_me: WARNING: /" >&2
|
|
- ;;
|
|
-esac
|
|
-echo "$as_me:$LINENO: checking for libintl.h" >&5
|
|
-echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
|
|
-if test "${ac_cv_header_libintl_h+set}" = set; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
-else
|
|
- ac_cv_header_libintl_h=$ac_header_preproc
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
|
|
-echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
+ac_cv_lib_intl_ngettext=no
|
|
fi
|
|
-if test $ac_cv_header_libintl_h = yes; then
|
|
- gt_cv_func_dgettext_libintl="no"
|
|
- libintl_extra_libs=""
|
|
-
|
|
- #
|
|
- # First check in libc
|
|
- #
|
|
- echo "$as_me:$LINENO: checking for ngettext in libc" >&5
|
|
-echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
|
|
-if test "${gt_cv_func_ngettext_libc+set}" = set; then
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
|
|
+echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
|
|
+if test $ac_cv_lib_intl_ngettext = yes; then
|
|
+ echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
|
|
+echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
|
|
+if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
+ ac_check_lib_save_LIBS=$LIBS
|
|
+LIBS="-lintl -liconv $LIBS"
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
-#include <libintl.h>
|
|
-
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char dcgettext ();
|
|
int
|
|
main ()
|
|
{
|
|
-return !ngettext ("","", 1)
|
|
+dcgettext ();
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -21377,24 +20996,48 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- gt_cv_func_ngettext_libc=yes
|
|
+ ac_cv_lib_intl_dcgettext=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-gt_cv_func_ngettext_libc=no
|
|
+ac_cv_lib_intl_dcgettext=no
|
|
fi
|
|
rm -f conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
+LIBS=$ac_check_lib_save_LIBS
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
|
|
+echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
|
|
+if test $ac_cv_lib_intl_dcgettext = yes; then
|
|
+ gt_cv_func_dgettext_libintl=yes
|
|
+ libintl_extra_libs=-liconv
|
|
+else
|
|
+ :
|
|
+fi
|
|
|
|
+else
|
|
+ :
|
|
fi
|
|
-echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
|
|
-echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
|
|
|
|
- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
|
- echo "$as_me:$LINENO: checking for dgettext in libc" >&5
|
|
-echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
|
|
-if test "${gt_cv_func_dgettext_libc+set}" = set; then
|
|
+ fi
|
|
+
|
|
+ #
|
|
+ # If we found libintl, then check in it for bind_textdomain_codeset();
|
|
+ # we'll prefer libc if neither have bind_textdomain_codeset(),
|
|
+ # and both have dgettext and ngettext
|
|
+ #
|
|
+ if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
|
|
+ glib_save_LIBS="$LIBS"
|
|
+ LIBS="$LIBS -lintl $libintl_extra_libs"
|
|
+ unset ac_cv_func_bind_textdomain_codeset
|
|
+
|
|
+for ac_func in bind_textdomain_codeset
|
|
+do
|
|
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
+echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
|
+if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
@@ -21403,13 +21046,47 @@ _ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
+#define $ac_func innocuous_$ac_func
|
|
|
|
-#include <libintl.h>
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char $ac_func (); below.
|
|
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
+ <limits.h> exists even on freestanding compilers. */
|
|
+
|
|
+#ifdef __STDC__
|
|
+# include <limits.h>
|
|
+#else
|
|
+# include <assert.h>
|
|
+#endif
|
|
+
|
|
+#undef $ac_func
|
|
+
|
|
+/* Override any gcc2 internal prototype to avoid an error. */
|
|
+#ifdef __cplusplus
|
|
+extern "C"
|
|
+{
|
|
+#endif
|
|
+/* We use char because int might match the return type of a gcc2
|
|
+ builtin and then its argument prototype would still apply. */
|
|
+char $ac_func ();
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
+choke me
|
|
+#else
|
|
+char (*f) () = $ac_func;
|
|
+#endif
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
|
|
int
|
|
main ()
|
|
{
|
|
-return !dgettext ("","")
|
|
+return f != $ac_func;
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -21436,24 +21113,94 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- gt_cv_func_dgettext_libc=yes
|
|
+ eval "$as_ac_var=yes"
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-gt_cv_func_dgettext_libc=no
|
|
+eval "$as_ac_var=no"
|
|
fi
|
|
rm -f conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
|
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
|
+if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
+ cat >>confdefs.h <<_ACEOF
|
|
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
+_ACEOF
|
|
|
|
fi
|
|
-echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
|
|
-echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
|
|
+done
|
|
+
|
|
+ LIBS="$glib_save_LIBS"
|
|
+
|
|
+ if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
|
|
+ gt_cv_func_dgettext_libc=no
|
|
+ else
|
|
+ if test "$gt_cv_func_dgettext_libc" = "yes" \
|
|
+ && test "$gt_cv_func_ngettext_libc" = "yes"; then
|
|
+ gt_cv_func_dgettext_libintl=no
|
|
+ fi
|
|
+ fi
|
|
+ fi
|
|
fi
|
|
|
|
- if test "$gt_cv_func_ngettext_libc" = "yes" ; then
|
|
+ if test "$gt_cv_func_dgettext_libc" = "yes" \
|
|
+ || test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|
+ gt_cv_have_gettext=yes
|
|
+ fi
|
|
|
|
-for ac_func in bind_textdomain_codeset
|
|
+ if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|
+ INTLLIBS="-lintl $libintl_extra_libs"
|
|
+ fi
|
|
+
|
|
+ if test "$gt_cv_have_gettext" = "yes"; then
|
|
+
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
+#define HAVE_GETTEXT 1
|
|
+_ACEOF
|
|
+
|
|
+ # Extract the first word of "msgfmt", so it can be a program name with args.
|
|
+set dummy msgfmt; ac_word=$2
|
|
+echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
+if test "${ac_cv_path_MSGFMT+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ case "$MSGFMT" in
|
|
+ /*)
|
|
+ ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|
+ ;;
|
|
+ *)
|
|
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
+ for ac_dir in $PATH; do
|
|
+ test -z "$ac_dir" && ac_dir=.
|
|
+ if test -f $ac_dir/$ac_word; then
|
|
+ if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|
+ ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|
+ break
|
|
+ fi
|
|
+ fi
|
|
+ done
|
|
+ IFS="$ac_save_ifs"
|
|
+ test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|
+ ;;
|
|
+esac
|
|
+fi
|
|
+MSGFMT="$ac_cv_path_MSGFMT"
|
|
+if test "$MSGFMT" != "no"; then
|
|
+ echo "$as_me:$LINENO: result: $MSGFMT" >&5
|
|
+echo "${ECHO_T}$MSGFMT" >&6
|
|
+else
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+fi
|
|
+ if test "$MSGFMT" != "no"; then
|
|
+ glib_save_LIBS="$LIBS"
|
|
+ LIBS="$LIBS $INTLLIBS"
|
|
+
|
|
+for ac_func in dcgettext
|
|
do
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
@@ -21554,40 +21301,94 @@ _ACEOF
|
|
fi
|
|
done
|
|
|
|
+ # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|
+set dummy gmsgfmt; ac_word=$2
|
|
+echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
+if test "${ac_cv_path_GMSGFMT+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ case $GMSGFMT in
|
|
+ [\\/]* | ?:[\\/]*)
|
|
+ ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|
+ ;;
|
|
+ *)
|
|
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
|
|
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+done
|
|
+
|
|
+ test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|
+ ;;
|
|
+esac
|
|
+fi
|
|
+GMSGFMT=$ac_cv_path_GMSGFMT
|
|
+
|
|
+if test -n "$GMSGFMT"; then
|
|
+ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
|
|
+echo "${ECHO_T}$GMSGFMT" >&6
|
|
+else
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+fi
|
|
+
|
|
+ # Extract the first word of "xgettext", so it can be a program name with args.
|
|
+set dummy xgettext; ac_word=$2
|
|
+echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
+if test "${ac_cv_path_XGETTEXT+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+else
|
|
+ case "$XGETTEXT" in
|
|
+ /*)
|
|
+ ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|
+ ;;
|
|
+ *)
|
|
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
+ for ac_dir in $PATH; do
|
|
+ test -z "$ac_dir" && ac_dir=.
|
|
+ if test -f $ac_dir/$ac_word; then
|
|
+ if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|
+ ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|
+ break
|
|
fi
|
|
-
|
|
- #
|
|
- # If we don't have everything we want, check in libintl
|
|
- #
|
|
- if test "$gt_cv_func_dgettext_libc" != "yes" \
|
|
- || test "$gt_cv_func_ngettext_libc" != "yes" \
|
|
- || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
|
|
-
|
|
- echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
|
|
-echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
|
|
-if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+ fi
|
|
+ done
|
|
+ IFS="$ac_save_ifs"
|
|
+ test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|
+ ;;
|
|
+esac
|
|
+fi
|
|
+XGETTEXT="$ac_cv_path_XGETTEXT"
|
|
+if test "$XGETTEXT" != ":"; then
|
|
+ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
|
|
+echo "${ECHO_T}$XGETTEXT" >&6
|
|
else
|
|
- ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lintl $LIBS"
|
|
-cat >conftest.$ac_ext <<_ACEOF
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+fi
|
|
+
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char bindtextdomain ();
|
|
int
|
|
main ()
|
|
{
|
|
-bindtextdomain ();
|
|
+extern int _nl_msg_cat_cntr;
|
|
+ return _nl_msg_cat_cntr
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -21614,45 +21415,66 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- ac_cv_lib_intl_bindtextdomain=yes
|
|
+ CATOBJEXT=.gmo
|
|
+ DATADIRNAME=share
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-ac_cv_lib_intl_bindtextdomain=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
-LIBS=$ac_check_lib_save_LIBS
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
|
|
-echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
|
|
-if test $ac_cv_lib_intl_bindtextdomain = yes; then
|
|
- echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
|
|
-echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
|
|
-if test "${ac_cv_lib_intl_ngettext+set}" = set; then
|
|
+case $host in
|
|
+ *-*-solaris*)
|
|
+ echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
|
|
+echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
|
|
+if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lintl $LIBS"
|
|
-cat >conftest.$ac_ext <<_ACEOF
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
+/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
|
|
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
+#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
|
|
+
|
|
+/* System header to define __stub macros and hopefully few prototypes,
|
|
+ which can conflict with char bind_textdomain_codeset (); below.
|
|
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
+ <limits.h> exists even on freestanding compilers. */
|
|
+
|
|
+#ifdef __STDC__
|
|
+# include <limits.h>
|
|
+#else
|
|
+# include <assert.h>
|
|
+#endif
|
|
+
|
|
+#undef bind_textdomain_codeset
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
+{
|
|
#endif
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
-char ngettext ();
|
|
+char bind_textdomain_codeset ();
|
|
+/* The GNU C library defines this for functions which it implements
|
|
+ to always fail with ENOSYS. Some functions are actually named
|
|
+ something starting with __ and the normal name is an alias. */
|
|
+#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
|
|
+choke me
|
|
+#else
|
|
+char (*f) () = bind_textdomain_codeset;
|
|
+#endif
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
+
|
|
int
|
|
main ()
|
|
{
|
|
-ngettext ();
|
|
+return f != bind_textdomain_codeset;
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -21679,27 +21501,176 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- ac_cv_lib_intl_ngettext=yes
|
|
+ ac_cv_func_bind_textdomain_codeset=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-ac_cv_lib_intl_ngettext=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
-LIBS=$ac_check_lib_save_LIBS
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
|
|
-echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
|
|
-if test $ac_cv_lib_intl_ngettext = yes; then
|
|
- echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
|
|
-echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
|
|
-if test "${ac_cv_lib_intl_dgettext+set}" = set; then
|
|
+ac_cv_func_bind_textdomain_codeset=no
|
|
+fi
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
+fi
|
|
+echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
|
|
+echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
|
|
+if test $ac_cv_func_bind_textdomain_codeset = yes; then
|
|
+ CATOBJEXT=.gmo
|
|
+ DATADIRNAME=share
|
|
+else
|
|
+ CATOBJEXT=.mo
|
|
+ DATADIRNAME=lib
|
|
+fi
|
|
+
|
|
+ ;;
|
|
+ *)
|
|
+ CATOBJEXT=.mo
|
|
+ DATADIRNAME=lib
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
+ LIBS="$glib_save_LIBS"
|
|
+ INSTOBJEXT=.mo
|
|
+ else
|
|
+ gt_cv_have_gettext=no
|
|
+ fi
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+ if test "$gt_cv_have_gettext" = "yes" ; then
|
|
+
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
+#define ENABLE_NLS 1
|
|
+_ACEOF
|
|
+
|
|
+ fi
|
|
+
|
|
+ if test "$XGETTEXT" != ":"; then
|
|
+ if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|
+ : ;
|
|
+ else
|
|
+ echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
|
|
+echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
|
|
+ XGETTEXT=":"
|
|
+ fi
|
|
+ fi
|
|
+
|
|
+ # We need to process the po/ directory.
|
|
+ POSUB=po
|
|
+
|
|
+ ac_config_commands="$ac_config_commands default-1"
|
|
+
|
|
+
|
|
+ for lang in $ALL_LINGUAS; do
|
|
+ GMOFILES="$GMOFILES $lang.gmo"
|
|
+ POFILES="$POFILES $lang.po"
|
|
+ done
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+ if test "$gt_cv_have_gettext" = "yes"; then
|
|
+ if test "x$ALL_LINGUAS" = "x"; then
|
|
+ LINGUAS=
|
|
+ else
|
|
+ echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
|
|
+echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
|
|
+ NEW_LINGUAS=
|
|
+ for presentlang in $ALL_LINGUAS; do
|
|
+ useit=no
|
|
+ if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
|
|
+ desiredlanguages="$LINGUAS"
|
|
+ else
|
|
+ desiredlanguages="$ALL_LINGUAS"
|
|
+ fi
|
|
+ for desiredlang in $desiredlanguages; do
|
|
+ # Use the presentlang catalog if desiredlang is
|
|
+ # a. equal to presentlang, or
|
|
+ # b. a variant of presentlang (because in this case,
|
|
+ # presentlang can be used as a fallback for messages
|
|
+ # which are not translated in the desiredlang catalog).
|
|
+ case "$desiredlang" in
|
|
+ "$presentlang"*) useit=yes;;
|
|
+ esac
|
|
+ done
|
|
+ if test $useit = yes; then
|
|
+ NEW_LINGUAS="$NEW_LINGUAS $presentlang"
|
|
+ fi
|
|
+ done
|
|
+ LINGUAS=$NEW_LINGUAS
|
|
+ echo "$as_me:$LINENO: result: $LINGUAS" >&5
|
|
+echo "${ECHO_T}$LINGUAS" >&6
|
|
+ fi
|
|
+
|
|
+ if test -n "$LINGUAS"; then
|
|
+ for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|
+ fi
|
|
+ fi
|
|
+
|
|
+ MKINSTALLDIRS=
|
|
+ if test -n "$ac_aux_dir"; then
|
|
+ MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
|
|
+ fi
|
|
+ if test -z "$MKINSTALLDIRS"; then
|
|
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
|
+ fi
|
|
+
|
|
+
|
|
+ test -d po || mkdir po
|
|
+ if test "x$srcdir" != "x."; then
|
|
+ if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
|
+ posrcprefix="$srcdir/"
|
|
+ else
|
|
+ posrcprefix="../$srcdir/"
|
|
+ fi
|
|
+ else
|
|
+ posrcprefix="../"
|
|
+ fi
|
|
+ rm -f po/POTFILES
|
|
+ sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|
+ < $srcdir/po/POTFILES.in > po/POTFILES
|
|
+
|
|
+
|
|
+echo "$as_me:$LINENO: checking locale directory" >&5
|
|
+echo $ECHO_N "checking locale directory... $ECHO_C" >&6
|
|
+if test "x$prefix" = "xNONE"; then
|
|
+ PACKAGE_LOCALE_DIR=$ac_default_prefix/share/locale
|
|
+else
|
|
+ PACKAGE_LOCALE_DIR=$prefix/share/locale
|
|
+fi
|
|
+
|
|
+
|
|
+cat >>confdefs.h <<_ACEOF
|
|
+#define PACKAGE_LOCALE_DIR "$PACKAGE_LOCALE_DIR"
|
|
+_ACEOF
|
|
+
|
|
+ echo "$as_me:$LINENO: result: \"$PACKAGE_LOCALE_DIR\"" >&5
|
|
+echo "${ECHO_T}\"$PACKAGE_LOCALE_DIR\"" >&6
|
|
+
|
|
+INTLTOOL_QALCULATE_DEFINITIONS_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po-defs/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po-defs/.intltool-merge-cache $(top_srcdir)/po-defs $< $@'
|
|
+
|
|
+
|
|
+
|
|
+echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
|
|
+echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
|
|
+if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lintl $LIBS"
|
|
+LIBS="-lpthread $LIBS"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
@@ -21713,11 +21684,11 @@ extern "C"
|
|
#endif
|
|
/* We use char because int might match the return type of a gcc2
|
|
builtin and then its argument prototype would still apply. */
|
|
-char dgettext ();
|
|
+char pthread_create ();
|
|
int
|
|
main ()
|
|
{
|
|
-dgettext ();
|
|
+pthread_create ();
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -21731,7 +21702,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
cat conftest.err >&5
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
+ { ac_try='test -z "$ac_c_werror_flag"
|
|
|| test ! -s conftest.err'
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
(eval $ac_try) 2>&5
|
|
@@ -21744,192 +21715,159 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- ac_cv_lib_intl_dgettext=yes
|
|
+ ac_cv_lib_pthread_pthread_create=yes
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-ac_cv_lib_intl_dgettext=no
|
|
+ac_cv_lib_pthread_pthread_create=no
|
|
fi
|
|
rm -f conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
LIBS=$ac_check_lib_save_LIBS
|
|
fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
|
|
-echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
|
|
-if test $ac_cv_lib_intl_dgettext = yes; then
|
|
- gt_cv_func_dgettext_libintl=yes
|
|
+echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
|
|
+echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
|
|
+if test $ac_cv_lib_pthread_pthread_create = yes; then
|
|
+ LIBS="$LIBS -lpthread"
|
|
fi
|
|
|
|
-fi
|
|
|
|
-fi
|
|
+ac_ext=cc
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
|
|
- if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
|
|
- echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
|
|
-echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
|
|
- echo "$as_me:$LINENO: result: " >&5
|
|
-echo "${ECHO_T}" >&6
|
|
- echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
|
|
-echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
|
|
-if test "${ac_cv_lib_intl_ngettext+set}" = set; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
-else
|
|
- ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lintl -liconv $LIBS"
|
|
-cat >conftest.$ac_ext <<_ACEOF
|
|
-/* confdefs.h. */
|
|
-_ACEOF
|
|
-cat confdefs.h >>conftest.$ac_ext
|
|
-cat >>conftest.$ac_ext <<_ACEOF
|
|
-/* end confdefs.h. */
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char ngettext ();
|
|
-int
|
|
-main ()
|
|
-{
|
|
-ngettext ();
|
|
- ;
|
|
- return 0;
|
|
-}
|
|
-_ACEOF
|
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>conftest.er1
|
|
- ac_status=$?
|
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest$ac_exeext'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; }; then
|
|
- ac_cv_lib_intl_ngettext=yes
|
|
+# Check whether --with-cln-prefix or --without-cln-prefix was given.
|
|
+if test "${with_cln_prefix+set}" = set; then
|
|
+ withval="$with_cln_prefix"
|
|
+ cln_config_prefix="$withval"
|
|
else
|
|
- echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
+ cln_config_prefix=""
|
|
+fi;
|
|
|
|
-ac_cv_lib_intl_ngettext=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
-LIBS=$ac_check_lib_save_LIBS
|
|
-fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
|
|
-echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
|
|
-if test $ac_cv_lib_intl_ngettext = yes; then
|
|
- echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
|
|
-echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
|
|
-if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+# Check whether --with-cln-exec-prefix or --without-cln-exec-prefix was given.
|
|
+if test "${with_cln_exec_prefix+set}" = set; then
|
|
+ withval="$with_cln_exec_prefix"
|
|
+ cln_config_exec_prefix="$withval"
|
|
else
|
|
- ac_check_lib_save_LIBS=$LIBS
|
|
-LIBS="-lintl -liconv $LIBS"
|
|
-cat >conftest.$ac_ext <<_ACEOF
|
|
-/* confdefs.h. */
|
|
-_ACEOF
|
|
-cat confdefs.h >>conftest.$ac_ext
|
|
-cat >>conftest.$ac_ext <<_ACEOF
|
|
-/* end confdefs.h. */
|
|
+ cln_config_exec_prefix=""
|
|
+fi;
|
|
+# Check whether --enable-clntest or --disable-clntest was given.
|
|
+if test "${enable_clntest+set}" = set; then
|
|
+ enableval="$enable_clntest"
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char dcgettext ();
|
|
-int
|
|
-main ()
|
|
-{
|
|
-dcgettext ();
|
|
- ;
|
|
- return 0;
|
|
-}
|
|
-_ACEOF
|
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>conftest.er1
|
|
- ac_status=$?
|
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest$ac_exeext'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; }; then
|
|
- ac_cv_lib_intl_dcgettext=yes
|
|
else
|
|
- echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
+ enable_clntest=yes
|
|
+fi;
|
|
|
|
-ac_cv_lib_intl_dcgettext=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
-LIBS=$ac_check_lib_save_LIBS
|
|
+if test x$cln_config_exec_prefix != x ; then
|
|
+ cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix"
|
|
+ if test x${CLN_CONFIG+set} != xset ; then
|
|
+ CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config
|
|
+ fi
|
|
fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
|
|
-echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
|
|
-if test $ac_cv_lib_intl_dcgettext = yes; then
|
|
- gt_cv_func_dgettext_libintl=yes
|
|
- libintl_extra_libs=-liconv
|
|
-else
|
|
- :
|
|
+if test x$cln_config_prefix != x ; then
|
|
+ cln_config_args="$cln_config_args --prefix=$cln_config_prefix"
|
|
+ if test x${CLN_CONFIG+set} != xset ; then
|
|
+ CLN_CONFIG=$cln_config_prefix/bin/cln-config
|
|
+ fi
|
|
fi
|
|
|
|
+# Extract the first word of "cln-config", so it can be a program name with args.
|
|
+set dummy cln-config; ac_word=$2
|
|
+echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
+if test "${ac_cv_path_CLN_CONFIG+set}" = set; then
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- :
|
|
-fi
|
|
-
|
|
- fi
|
|
+ case $CLN_CONFIG in
|
|
+ [\\/]* | ?:[\\/]*)
|
|
+ ac_cv_path_CLN_CONFIG="$CLN_CONFIG" # Let the user override the test with a path.
|
|
+ ;;
|
|
+ *)
|
|
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_path_CLN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+done
|
|
|
|
- #
|
|
- # If we found libintl, then check in it for bind_textdomain_codeset();
|
|
- # we'll prefer libc if neither have bind_textdomain_codeset(),
|
|
- # and both have dgettext and ngettext
|
|
- #
|
|
- if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
|
|
- glib_save_LIBS="$LIBS"
|
|
- LIBS="$LIBS -lintl $libintl_extra_libs"
|
|
- unset ac_cv_func_bind_textdomain_codeset
|
|
+ test -z "$ac_cv_path_CLN_CONFIG" && ac_cv_path_CLN_CONFIG="no"
|
|
+ ;;
|
|
+esac
|
|
+fi
|
|
+CLN_CONFIG=$ac_cv_path_CLN_CONFIG
|
|
|
|
-for ac_func in bind_textdomain_codeset
|
|
-do
|
|
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
-echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
|
-if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+if test -n "$CLN_CONFIG"; then
|
|
+ echo "$as_me:$LINENO: result: $CLN_CONFIG" >&5
|
|
+echo "${ECHO_T}$CLN_CONFIG" >&6
|
|
+else
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+fi
|
|
+
|
|
+cln_min_version=1.1.0
|
|
+echo "$as_me:$LINENO: checking for CLN - version >= $cln_min_version" >&5
|
|
+echo $ECHO_N "checking for CLN - version >= $cln_min_version... $ECHO_C" >&6
|
|
+if test "$CLN_CONFIG" = "no" ; then
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+ echo "*** The cln-config script installed by CLN could not be found"
|
|
+ echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in"
|
|
+ echo "*** your path, or set the CLN_CONFIG environment variable to the"
|
|
+ echo "*** full path to cln-config."
|
|
+ { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5
|
|
+echo "$as_me: error: No suitable installed version of CLN could be found." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+else
|
|
+ cln_min_major_version=`echo $cln_min_version | \
|
|
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
+ cln_min_minor_version=`echo $cln_min_version | \
|
|
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
+ cln_min_micro_version=`echo $cln_min_version | \
|
|
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
+ CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags`
|
|
+ CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs`
|
|
+ cln_config_version=`$CLN_CONFIG $cln_config_args --version`
|
|
+ cln_config_major_version=`echo $cln_config_version | \
|
|
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
+ cln_config_minor_version=`echo $cln_config_version | \
|
|
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
+ cln_config_micro_version=`echo $cln_config_version | \
|
|
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
+ if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \
|
|
+ \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \
|
|
+ \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then
|
|
+ echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version"
|
|
+ echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is"
|
|
+ echo "*** best to upgrade to the required version."
|
|
+ echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG"
|
|
+ echo "*** to point to the correct copy of cln-config, and remove the file"
|
|
+ echo "*** config.cache before re-running configure."
|
|
+ { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5
|
|
+echo "$as_me: error: No suitable installed version of CLN could be found." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+ else
|
|
+ no_cln=""
|
|
+ if test "x$enable_clntest" = "xyes" ; then
|
|
+ ac_save_CPPFLAGS="$CPPFLAGS"
|
|
+ ac_save_LIBS="$LIBS"
|
|
+ CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
|
|
+ LIBS="$LIBS $CLN_LIBS"
|
|
+ rm -f conf.clntest
|
|
+ if test "$cross_compiling" = yes; then
|
|
+ echo $ac_n "cross compiling; assumed OK... $ac_c"
|
|
else
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
@@ -21937,215 +21875,99 @@ _ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
-#define $ac_func innocuous_$ac_func
|
|
-
|
|
-/* System header to define __stub macros and hopefully few prototypes,
|
|
- which can conflict with char $ac_func (); below.
|
|
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
- <limits.h> exists even on freestanding compilers. */
|
|
|
|
-#ifdef __STDC__
|
|
-# include <limits.h>
|
|
-#else
|
|
-# include <assert.h>
|
|
-#endif
|
|
+#include <stdio.h>
|
|
+#include <string.h>
|
|
+#include <cln/version.h>
|
|
|
|
-#undef $ac_func
|
|
+/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a
|
|
+ prototype for exit() that conflicts with the one in stdlib.h */
|
|
+extern "C" int system(const char *);
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
+int main(void)
|
|
{
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char $ac_func ();
|
|
-/* The GNU C library defines this for functions which it implements
|
|
- to always fail with ENOSYS. Some functions are actually named
|
|
- something starting with __ and the normal name is an alias. */
|
|
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
-choke me
|
|
-#else
|
|
-char (*f) () = $ac_func;
|
|
-#endif
|
|
-#ifdef __cplusplus
|
|
-}
|
|
-#endif
|
|
+ system("touch conf.clntest");
|
|
|
|
-int
|
|
-main ()
|
|
-{
|
|
-return f != $ac_func;
|
|
- ;
|
|
- return 0;
|
|
+ if ((CL_VERSION_MAJOR != $cln_config_major_version) ||
|
|
+ (CL_VERSION_MINOR != $cln_config_minor_version) ||
|
|
+ (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) {
|
|
+ printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
|
|
+ printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL);
|
|
+ printf("*** is corrupted or you have specified some wrong -I compiler flags.\n");
|
|
+ printf("*** Please inquire and consider reinstalling CLN.\n");
|
|
+ return 1;
|
|
+ }
|
|
+ if ((cln::version_major != $cln_config_major_version) ||
|
|
+ (cln::version_minor != $cln_config_minor_version) ||
|
|
+ (cln::version_patchlevel != $cln_config_micro_version)) {
|
|
+ printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
|
|
+ printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel);
|
|
+ printf("*** is corrupted or you have specified some wrong -L compiler flags.\n");
|
|
+ printf("*** Please inquire and consider reinstalling CLN.\n");
|
|
+ return 1;
|
|
+ }
|
|
+ return 0;
|
|
}
|
|
+
|
|
_ACEOF
|
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
+rm -f conftest$ac_exeext
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>conftest.er1
|
|
- ac_status=$?
|
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
+ (eval $ac_link) 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest$ac_exeext'
|
|
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
(eval $ac_try) 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- eval "$as_ac_var=yes"
|
|
+ :
|
|
else
|
|
- echo "$as_me: failed program was:" >&5
|
|
+ echo "$as_me: program exited with status $ac_status" >&5
|
|
+echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-eval "$as_ac_var=no"
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
+( exit $ac_status )
|
|
+no_cln=yes
|
|
fi
|
|
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
|
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
|
-if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
- cat >>confdefs.h <<_ACEOF
|
|
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
-_ACEOF
|
|
-
|
|
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
fi
|
|
-done
|
|
-
|
|
- LIBS="$glib_save_LIBS"
|
|
-
|
|
- if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
|
|
- gt_cv_func_dgettext_libc=no
|
|
- else
|
|
- if test "$gt_cv_func_dgettext_libc" = "yes" \
|
|
- && test "$gt_cv_func_ngettext_libc" = "yes"; then
|
|
- gt_cv_func_dgettext_libintl=no
|
|
- fi
|
|
- fi
|
|
+ CPPFLAGS="$ac_save_CPPFLAGS"
|
|
+ LIBS="$ac_save_LIBS"
|
|
fi
|
|
- fi
|
|
-
|
|
- if test "$gt_cv_func_dgettext_libc" = "yes" \
|
|
- || test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|
- gt_cv_have_gettext=yes
|
|
- fi
|
|
-
|
|
- if test "$gt_cv_func_dgettext_libintl" = "yes"; then
|
|
- INTLLIBS="-lintl $libintl_extra_libs"
|
|
- fi
|
|
+ if test "x$no_cln" = x ; then
|
|
+ echo "$as_me:$LINENO: result: yes, $cln_config_version" >&5
|
|
+echo "${ECHO_T}yes, $cln_config_version" >&6
|
|
|
|
- if test "$gt_cv_have_gettext" = "yes"; then
|
|
+ LIBS="$LIBS $CLN_LIBS"
|
|
+ CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
-#define HAVE_GETTEXT 1
|
|
-_ACEOF
|
|
-
|
|
- # Extract the first word of "msgfmt", so it can be a program name with args.
|
|
-set dummy msgfmt; ac_word=$2
|
|
-echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
-if test "${ac_cv_path_MSGFMT+set}" = set; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
-else
|
|
- case "$MSGFMT" in
|
|
- /*)
|
|
- ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
|
|
- ;;
|
|
- *)
|
|
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
- for ac_dir in $PATH; do
|
|
- test -z "$ac_dir" && ac_dir=.
|
|
- if test -f $ac_dir/$ac_word; then
|
|
- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
|
|
- ac_cv_path_MSGFMT="$ac_dir/$ac_word"
|
|
- break
|
|
- fi
|
|
- fi
|
|
- done
|
|
- IFS="$ac_save_ifs"
|
|
- test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
|
|
- ;;
|
|
-esac
|
|
-fi
|
|
-MSGFMT="$ac_cv_path_MSGFMT"
|
|
-if test "$MSGFMT" != "no"; then
|
|
- echo "$as_me:$LINENO: result: $MSGFMT" >&5
|
|
-echo "${ECHO_T}$MSGFMT" >&6
|
|
-else
|
|
- echo "$as_me:$LINENO: result: no" >&5
|
|
-echo "${ECHO_T}no" >&6
|
|
-fi
|
|
- if test "$MSGFMT" != "no"; then
|
|
- glib_save_LIBS="$LIBS"
|
|
- LIBS="$LIBS $INTLLIBS"
|
|
-
|
|
-for ac_func in dcgettext
|
|
-do
|
|
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
|
-echo "$as_me:$LINENO: checking for $ac_func" >&5
|
|
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
|
-if eval "test \"\${$as_ac_var+set}\" = set"; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
-else
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
-/* confdefs.h. */
|
|
+#define HAVE_LIBCLN 1
|
|
_ACEOF
|
|
-cat confdefs.h >>conftest.$ac_ext
|
|
-cat >>conftest.$ac_ext <<_ACEOF
|
|
-/* end confdefs.h. */
|
|
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
|
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
-#define $ac_func innocuous_$ac_func
|
|
-
|
|
-/* System header to define __stub macros and hopefully few prototypes,
|
|
- which can conflict with char $ac_func (); below.
|
|
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
- <limits.h> exists even on freestanding compilers. */
|
|
-
|
|
-#ifdef __STDC__
|
|
-# include <limits.h>
|
|
-#else
|
|
-# include <assert.h>
|
|
-#endif
|
|
|
|
-#undef $ac_func
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
-{
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char $ac_func ();
|
|
-/* The GNU C library defines this for functions which it implements
|
|
- to always fail with ENOSYS. Some functions are actually named
|
|
- something starting with __ and the normal name is an alias. */
|
|
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
|
-choke me
|
|
-#else
|
|
-char (*f) () = $ac_func;
|
|
-#endif
|
|
-#ifdef __cplusplus
|
|
-}
|
|
-#endif
|
|
+ else
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+ if test ! -f conf.clntest ; then
|
|
+ echo "*** Could not run CLN test program, checking why..."
|
|
+ CPPFLAGS="$CFLAGS $CLN_CPPFLAGS"
|
|
+ LIBS="$LIBS $CLN_LIBS"
|
|
+ cat >conftest.$ac_ext <<_ACEOF
|
|
+/* confdefs.h. */
|
|
+_ACEOF
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
+/* end confdefs.h. */
|
|
+
|
|
+#include <stdio.h>
|
|
+#include <cln/version.h>
|
|
|
|
int
|
|
main ()
|
|
{
|
|
-return f != $ac_func;
|
|
+ return 0;
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -22172,36 +21994,53 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
(exit $ac_status); }; }; then
|
|
- eval "$as_ac_var=yes"
|
|
+ echo "*** The test program compiled, but did not run. This usually means"
|
|
+ echo "*** that the run-time linker is not finding CLN or finding the wrong"
|
|
+ echo "*** version of CLN. If it is not finding CLN, you'll need to set your"
|
|
+ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
|
+ echo "*** to the installed location. Also, make sure you have run ldconfig if that"
|
|
+ echo "*** is required on your system."
|
|
else
|
|
echo "$as_me: failed program was:" >&5
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
-eval "$as_ac_var=no"
|
|
+ echo "*** The test program failed to compile or link. See the file config.log for the"
|
|
+ echo "*** exact error that occured. This usually means CLN was incorrectly installed"
|
|
+ echo "*** or that you have moved CLN since it was installed. In the latter case, you"
|
|
+ echo "*** may want to edit the cln-config script: $CLN_CONFIG."
|
|
fi
|
|
rm -f conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
+ CPPFLAGS="$ac_save_CPPFLAGS"
|
|
+ LIBS="$ac_save_LIBS"
|
|
+ fi
|
|
+ CLN_CPPFLAGS=""
|
|
+ CLN_LIBS=""
|
|
+ { { echo "$as_me:$LINENO: error: No suitable installed version of CLN could be found." >&5
|
|
+echo "$as_me: error: No suitable installed version of CLN could be found." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+ fi
|
|
+ fi
|
|
fi
|
|
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
|
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
|
-if test `eval echo '${'$as_ac_var'}'` = yes; then
|
|
- cat >>confdefs.h <<_ACEOF
|
|
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
|
-_ACEOF
|
|
|
|
-fi
|
|
-done
|
|
|
|
- # Extract the first word of "gmsgfmt", so it can be a program name with args.
|
|
-set dummy gmsgfmt; ac_word=$2
|
|
+rm -f conf.clntest
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|
+ if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
-if test "${ac_cv_path_GMSGFMT+set}" = set; then
|
|
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- case $GMSGFMT in
|
|
+ case $PKG_CONFIG in
|
|
[\\/]* | ?:[\\/]*)
|
|
- ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
|
|
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
@@ -22211,348 +22050,509 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
|
|
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
done
|
|
done
|
|
|
|
- test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
|
|
;;
|
|
esac
|
|
fi
|
|
-GMSGFMT=$ac_cv_path_GMSGFMT
|
|
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
|
|
|
-if test -n "$GMSGFMT"; then
|
|
- echo "$as_me:$LINENO: result: $GMSGFMT" >&5
|
|
-echo "${ECHO_T}$GMSGFMT" >&6
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
|
|
+echo "${ECHO_T}$PKG_CONFIG" >&6
|
|
else
|
|
echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6
|
|
fi
|
|
|
|
- # Extract the first word of "xgettext", so it can be a program name with args.
|
|
-set dummy xgettext; ac_word=$2
|
|
+fi
|
|
+if test -z "$ac_cv_path_PKG_CONFIG"; then
|
|
+ ac_pt_PKG_CONFIG=$PKG_CONFIG
|
|
+ # Extract the first word of "pkg-config", so it can be a program name with args.
|
|
+set dummy pkg-config; ac_word=$2
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
|
-if test "${ac_cv_path_XGETTEXT+set}" = set; then
|
|
+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
else
|
|
- case "$XGETTEXT" in
|
|
- /*)
|
|
- ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
|
|
+ case $ac_pt_PKG_CONFIG in
|
|
+ [\\/]* | ?:[\\/]*)
|
|
+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
|
;;
|
|
*)
|
|
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
- for ac_dir in $PATH; do
|
|
- test -z "$ac_dir" && ac_dir=.
|
|
- if test -f $ac_dir/$ac_word; then
|
|
- if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
|
|
- ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
|
|
- break
|
|
- fi
|
|
- fi
|
|
- done
|
|
- IFS="$ac_save_ifs"
|
|
- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
|
|
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
|
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+done
|
|
+
|
|
;;
|
|
esac
|
|
fi
|
|
-XGETTEXT="$ac_cv_path_XGETTEXT"
|
|
-if test "$XGETTEXT" != ":"; then
|
|
- echo "$as_me:$LINENO: result: $XGETTEXT" >&5
|
|
-echo "${ECHO_T}$XGETTEXT" >&6
|
|
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
|
+
|
|
+if test -n "$ac_pt_PKG_CONFIG"; then
|
|
+ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
|
|
+echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
|
|
else
|
|
echo "$as_me:$LINENO: result: no" >&5
|
|
echo "${ECHO_T}no" >&6
|
|
fi
|
|
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
-/* confdefs.h. */
|
|
-_ACEOF
|
|
-cat confdefs.h >>conftest.$ac_ext
|
|
-cat >>conftest.$ac_ext <<_ACEOF
|
|
-/* end confdefs.h. */
|
|
+ PKG_CONFIG=$ac_pt_PKG_CONFIG
|
|
+else
|
|
+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
|
+fi
|
|
+
|
|
+fi
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ _pkg_min_version=0.9.0
|
|
+ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
|
|
+echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
|
|
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|
+ echo "$as_me:$LINENO: result: yes" >&5
|
|
+echo "${ECHO_T}yes" >&6
|
|
+ else
|
|
+ echo "$as_me:$LINENO: result: no" >&5
|
|
+echo "${ECHO_T}no" >&6
|
|
+ PKG_CONFIG=""
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+pkg_failed=no
|
|
+echo "$as_me:$LINENO: checking for GLIB" >&5
|
|
+echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
|
|
+
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ if test -n "$GLIB_CFLAGS"; then
|
|
+ pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
|
|
+ else
|
|
+ if test -n "$PKG_CONFIG" && \
|
|
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ \"") >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ ") 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; then
|
|
+ pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ " 2>/dev/null`
|
|
+else
|
|
+ pkg_failed=yes
|
|
+fi
|
|
+ fi
|
|
+else
|
|
+ pkg_failed=untried
|
|
+fi
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ if test -n "$GLIB_LIBS"; then
|
|
+ pkg_cv_GLIB_LIBS="$GLIB_LIBS"
|
|
+ else
|
|
+ if test -n "$PKG_CONFIG" && \
|
|
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ \"") >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ ") 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; then
|
|
+ pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ " 2>/dev/null`
|
|
+else
|
|
+ pkg_failed=yes
|
|
+fi
|
|
+ fi
|
|
+else
|
|
+ pkg_failed=untried
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+if test $pkg_failed = yes; then
|
|
+
|
|
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
+ _pkg_short_errors_supported=yes
|
|
+else
|
|
+ _pkg_short_errors_supported=no
|
|
+fi
|
|
+ if test $_pkg_short_errors_supported = yes; then
|
|
+ GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ "`
|
|
+ else
|
|
+ GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ "`
|
|
+ fi
|
|
+ # Put the nasty error message in config.log where it belongs
|
|
+ echo "$GLIB_PKG_ERRORS" >&5
|
|
+
|
|
+ { { echo "$as_me:$LINENO: error: Package requirements (
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ ) were not met:
|
|
+
|
|
+$GLIB_PKG_ERRORS
|
|
+
|
|
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
+installed software in a non-standard prefix.
|
|
|
|
-int
|
|
-main ()
|
|
-{
|
|
-extern int _nl_msg_cat_cntr;
|
|
- return _nl_msg_cat_cntr
|
|
- ;
|
|
- return 0;
|
|
-}
|
|
-_ACEOF
|
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>conftest.er1
|
|
- ac_status=$?
|
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest$ac_exeext'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
- ac_status=$?
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; }; then
|
|
- CATOBJEXT=.gmo
|
|
- DATADIRNAME=share
|
|
-else
|
|
- echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
+Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
+and GLIB_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+" >&5
|
|
+echo "$as_me: error: Package requirements (
|
|
+ glib-2.0 >= 2.4
|
|
+ libxml-2.0
|
|
+ ) were not met:
|
|
|
|
-case $host in
|
|
- *-*-solaris*)
|
|
- echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
|
|
-echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
|
|
-if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
|
|
- echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
+$GLIB_PKG_ERRORS
|
|
+
|
|
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
+installed software in a non-standard prefix.
|
|
+
|
|
+Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
+and GLIB_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+" >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+elif test $pkg_failed = untried; then
|
|
+ { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
|
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
+path to pkg-config.
|
|
+
|
|
+Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
+and GLIB_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+
|
|
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
+See \`config.log' for more details." >&5
|
|
+echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
|
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
+path to pkg-config.
|
|
+
|
|
+Alternatively, you may set the environment variables GLIB_CFLAGS
|
|
+and GLIB_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+
|
|
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
+See \`config.log' for more details." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
else
|
|
- cat >conftest.$ac_ext <<_ACEOF
|
|
-/* confdefs.h. */
|
|
-_ACEOF
|
|
-cat confdefs.h >>conftest.$ac_ext
|
|
-cat >>conftest.$ac_ext <<_ACEOF
|
|
-/* end confdefs.h. */
|
|
-/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
|
|
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
|
-#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
|
|
+ GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
|
|
+ GLIB_LIBS=$pkg_cv_GLIB_LIBS
|
|
+ echo "$as_me:$LINENO: result: yes" >&5
|
|
+echo "${ECHO_T}yes" >&6
|
|
+ :
|
|
+fi
|
|
|
|
-/* System header to define __stub macros and hopefully few prototypes,
|
|
- which can conflict with char bind_textdomain_codeset (); below.
|
|
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
|
- <limits.h> exists even on freestanding compilers. */
|
|
|
|
-#ifdef __STDC__
|
|
-# include <limits.h>
|
|
-#else
|
|
-# include <assert.h>
|
|
-#endif
|
|
|
|
-#undef bind_textdomain_codeset
|
|
|
|
-/* Override any gcc2 internal prototype to avoid an error. */
|
|
-#ifdef __cplusplus
|
|
-extern "C"
|
|
-{
|
|
-#endif
|
|
-/* We use char because int might match the return type of a gcc2
|
|
- builtin and then its argument prototype would still apply. */
|
|
-char bind_textdomain_codeset ();
|
|
-/* The GNU C library defines this for functions which it implements
|
|
- to always fail with ENOSYS. Some functions are actually named
|
|
- something starting with __ and the normal name is an alias. */
|
|
-#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
|
|
-choke me
|
|
-#else
|
|
-char (*f) () = bind_textdomain_codeset;
|
|
-#endif
|
|
-#ifdef __cplusplus
|
|
-}
|
|
-#endif
|
|
+pkg_failed=no
|
|
+echo "$as_me:$LINENO: checking for GTK" >&5
|
|
+echo $ECHO_N "checking for GTK... $ECHO_C" >&6
|
|
|
|
-int
|
|
-main ()
|
|
-{
|
|
-return f != bind_textdomain_codeset;
|
|
- ;
|
|
- return 0;
|
|
-}
|
|
-_ACEOF
|
|
-rm -f conftest.$ac_objext conftest$ac_exeext
|
|
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
- (eval $ac_link) 2>conftest.er1
|
|
- ac_status=$?
|
|
- grep -v '^ *+' conftest.er1 >conftest.err
|
|
- rm -f conftest.er1
|
|
- cat conftest.err >&5
|
|
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); } &&
|
|
- { ac_try='test -z "$ac_cxx_werror_flag"
|
|
- || test ! -s conftest.err'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ if test -n "$GTK_CFLAGS"; then
|
|
+ pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
|
|
+ else
|
|
+ if test -n "$PKG_CONFIG" && \
|
|
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ \"") >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ ") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; } &&
|
|
- { ac_try='test -s conftest$ac_exeext'
|
|
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
- (eval $ac_try) 2>&5
|
|
+ (exit $ac_status); }; then
|
|
+ pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ " 2>/dev/null`
|
|
+else
|
|
+ pkg_failed=yes
|
|
+fi
|
|
+ fi
|
|
+else
|
|
+ pkg_failed=untried
|
|
+fi
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ if test -n "$GTK_LIBS"; then
|
|
+ pkg_cv_GTK_LIBS="$GTK_LIBS"
|
|
+ else
|
|
+ if test -n "$PKG_CONFIG" && \
|
|
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ \"") >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ ") 2>&5
|
|
ac_status=$?
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
- (exit $ac_status); }; }; then
|
|
- ac_cv_func_bind_textdomain_codeset=yes
|
|
+ (exit $ac_status); }; then
|
|
+ pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ " 2>/dev/null`
|
|
else
|
|
- echo "$as_me: failed program was:" >&5
|
|
-sed 's/^/| /' conftest.$ac_ext >&5
|
|
-
|
|
-ac_cv_func_bind_textdomain_codeset=no
|
|
-fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
+ pkg_failed=yes
|
|
fi
|
|
-echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
|
|
-echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
|
|
-if test $ac_cv_func_bind_textdomain_codeset = yes; then
|
|
- CATOBJEXT=.gmo
|
|
- DATADIRNAME=share
|
|
+ fi
|
|
else
|
|
- CATOBJEXT=.mo
|
|
- DATADIRNAME=lib
|
|
+ pkg_failed=untried
|
|
fi
|
|
|
|
- ;;
|
|
- *)
|
|
- CATOBJEXT=.mo
|
|
- DATADIRNAME=lib
|
|
- ;;
|
|
- esac
|
|
+
|
|
+
|
|
+if test $pkg_failed = yes; then
|
|
+
|
|
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
+ _pkg_short_errors_supported=yes
|
|
+else
|
|
+ _pkg_short_errors_supported=no
|
|
fi
|
|
-rm -f conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
- LIBS="$glib_save_LIBS"
|
|
- INSTOBJEXT=.mo
|
|
- else
|
|
- gt_cv_have_gettext=no
|
|
- fi
|
|
- fi
|
|
+ if test $_pkg_short_errors_supported = yes; then
|
|
+ GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ "`
|
|
+ else
|
|
+ GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ "`
|
|
+ fi
|
|
+ # Put the nasty error message in config.log where it belongs
|
|
+ echo "$GTK_PKG_ERRORS" >&5
|
|
|
|
-fi
|
|
+ { { echo "$as_me:$LINENO: error: Package requirements (
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ ) were not met:
|
|
|
|
+$GTK_PKG_ERRORS
|
|
|
|
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
+installed software in a non-standard prefix.
|
|
|
|
- if test "$gt_cv_have_gettext" = "yes" ; then
|
|
+Alternatively, you may set the environment variables GTK_CFLAGS
|
|
+and GTK_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+" >&5
|
|
+echo "$as_me: error: Package requirements (
|
|
+ gtk+-2.0 >= 2.4
|
|
+ gdk-pixbuf-2.0
|
|
+ ) were not met:
|
|
|
|
-cat >>confdefs.h <<\_ACEOF
|
|
-#define ENABLE_NLS 1
|
|
-_ACEOF
|
|
+$GTK_PKG_ERRORS
|
|
|
|
- fi
|
|
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
+installed software in a non-standard prefix.
|
|
|
|
- if test "$XGETTEXT" != ":"; then
|
|
- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
|
- : ;
|
|
- else
|
|
- echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
|
|
-echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
|
|
- XGETTEXT=":"
|
|
- fi
|
|
- fi
|
|
+Alternatively, you may set the environment variables GTK_CFLAGS
|
|
+and GTK_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+" >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+elif test $pkg_failed = untried; then
|
|
+ { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
|
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
+path to pkg-config.
|
|
|
|
- # We need to process the po/ directory.
|
|
- POSUB=po
|
|
+Alternatively, you may set the environment variables GTK_CFLAGS
|
|
+and GTK_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
|
|
- ac_config_commands="$ac_config_commands default-1"
|
|
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
+See \`config.log' for more details." >&5
|
|
+echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
|
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
+path to pkg-config.
|
|
|
|
+Alternatively, you may set the environment variables GTK_CFLAGS
|
|
+and GTK_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+
|
|
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
+See \`config.log' for more details." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+else
|
|
+ GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
|
|
+ GTK_LIBS=$pkg_cv_GTK_LIBS
|
|
+ echo "$as_me:$LINENO: result: yes" >&5
|
|
+echo "${ECHO_T}yes" >&6
|
|
+ :
|
|
+fi
|
|
|
|
- for lang in $ALL_LINGUAS; do
|
|
- GMOFILES="$GMOFILES $lang.gmo"
|
|
- POFILES="$POFILES $lang.po"
|
|
- done
|
|
|
|
|
|
|
|
+pkg_failed=no
|
|
+echo "$as_me:$LINENO: checking for QALCULATE" >&5
|
|
+echo $ECHO_N "checking for QALCULATE... $ECHO_C" >&6
|
|
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ if test -n "$QALCULATE_CFLAGS"; then
|
|
+ pkg_cv_QALCULATE_CFLAGS="$QALCULATE_CFLAGS"
|
|
+ else
|
|
+ if test -n "$PKG_CONFIG" && \
|
|
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
+ libqalculate >= 0.9.4
|
|
+ \"") >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "
|
|
+ libqalculate >= 0.9.4
|
|
+ ") 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; then
|
|
+ pkg_cv_QALCULATE_CFLAGS=`$PKG_CONFIG --cflags "
|
|
+ libqalculate >= 0.9.4
|
|
+ " 2>/dev/null`
|
|
+else
|
|
+ pkg_failed=yes
|
|
+fi
|
|
+ fi
|
|
+else
|
|
+ pkg_failed=untried
|
|
+fi
|
|
+if test -n "$PKG_CONFIG"; then
|
|
+ if test -n "$QALCULATE_LIBS"; then
|
|
+ pkg_cv_QALCULATE_LIBS="$QALCULATE_LIBS"
|
|
+ else
|
|
+ if test -n "$PKG_CONFIG" && \
|
|
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
|
|
+ libqalculate >= 0.9.4
|
|
+ \"") >&5
|
|
+ ($PKG_CONFIG --exists --print-errors "
|
|
+ libqalculate >= 0.9.4
|
|
+ ") 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }; then
|
|
+ pkg_cv_QALCULATE_LIBS=`$PKG_CONFIG --libs "
|
|
+ libqalculate >= 0.9.4
|
|
+ " 2>/dev/null`
|
|
+else
|
|
+ pkg_failed=yes
|
|
+fi
|
|
+ fi
|
|
+else
|
|
+ pkg_failed=untried
|
|
+fi
|
|
|
|
|
|
|
|
+if test $pkg_failed = yes; then
|
|
|
|
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
+ _pkg_short_errors_supported=yes
|
|
+else
|
|
+ _pkg_short_errors_supported=no
|
|
+fi
|
|
+ if test $_pkg_short_errors_supported = yes; then
|
|
+ QALCULATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
|
|
+ libqalculate >= 0.9.4
|
|
+ "`
|
|
+ else
|
|
+ QALCULATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
|
+ libqalculate >= 0.9.4
|
|
+ "`
|
|
+ fi
|
|
+ # Put the nasty error message in config.log where it belongs
|
|
+ echo "$QALCULATE_PKG_ERRORS" >&5
|
|
|
|
+ { { echo "$as_me:$LINENO: error: Package requirements (
|
|
+ libqalculate >= 0.9.4
|
|
+ ) were not met:
|
|
|
|
+$QALCULATE_PKG_ERRORS
|
|
|
|
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
+installed software in a non-standard prefix.
|
|
|
|
+Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
+and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+" >&5
|
|
+echo "$as_me: error: Package requirements (
|
|
+ libqalculate >= 0.9.4
|
|
+ ) were not met:
|
|
|
|
- if test "$gt_cv_have_gettext" = "yes"; then
|
|
- if test "x$ALL_LINGUAS" = "x"; then
|
|
- LINGUAS=
|
|
- else
|
|
- echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
|
|
-echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
|
|
- NEW_LINGUAS=
|
|
- for presentlang in $ALL_LINGUAS; do
|
|
- useit=no
|
|
- if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
|
|
- desiredlanguages="$LINGUAS"
|
|
- else
|
|
- desiredlanguages="$ALL_LINGUAS"
|
|
- fi
|
|
- for desiredlang in $desiredlanguages; do
|
|
- # Use the presentlang catalog if desiredlang is
|
|
- # a. equal to presentlang, or
|
|
- # b. a variant of presentlang (because in this case,
|
|
- # presentlang can be used as a fallback for messages
|
|
- # which are not translated in the desiredlang catalog).
|
|
- case "$desiredlang" in
|
|
- "$presentlang"*) useit=yes;;
|
|
- esac
|
|
- done
|
|
- if test $useit = yes; then
|
|
- NEW_LINGUAS="$NEW_LINGUAS $presentlang"
|
|
- fi
|
|
- done
|
|
- LINGUAS=$NEW_LINGUAS
|
|
- echo "$as_me:$LINENO: result: $LINGUAS" >&5
|
|
-echo "${ECHO_T}$LINGUAS" >&6
|
|
- fi
|
|
+$QALCULATE_PKG_ERRORS
|
|
|
|
- if test -n "$LINGUAS"; then
|
|
- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
|
- fi
|
|
- fi
|
|
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
+installed software in a non-standard prefix.
|
|
|
|
- MKINSTALLDIRS=
|
|
- if test -n "$ac_aux_dir"; then
|
|
- MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
|
|
- fi
|
|
- if test -z "$MKINSTALLDIRS"; then
|
|
- MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
|
|
- fi
|
|
+Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
+and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
+" >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+elif test $pkg_failed = untried; then
|
|
+ { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
|
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
+path to pkg-config.
|
|
|
|
+Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
+and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
|
|
- test -d po || mkdir po
|
|
- if test "x$srcdir" != "x."; then
|
|
- if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
|
- posrcprefix="$srcdir/"
|
|
- else
|
|
- posrcprefix="../$srcdir/"
|
|
- fi
|
|
- else
|
|
- posrcprefix="../"
|
|
- fi
|
|
- rm -f po/POTFILES
|
|
- sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
|
- < $srcdir/po/POTFILES.in > po/POTFILES
|
|
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
+See \`config.log' for more details." >&5
|
|
+echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
|
+is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
+path to pkg-config.
|
|
|
|
+Alternatively, you may set the environment variables QALCULATE_CFLAGS
|
|
+and QALCULATE_LIBS to avoid the need to call pkg-config.
|
|
+See the pkg-config man page for more details.
|
|
|
|
-echo "$as_me:$LINENO: checking locale directory" >&5
|
|
-echo $ECHO_N "checking locale directory... $ECHO_C" >&6
|
|
-if test "x$prefix" = "xNONE"; then
|
|
- PACKAGE_LOCALE_DIR=$ac_default_prefix/share/locale
|
|
+To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
|
+See \`config.log' for more details." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
else
|
|
- PACKAGE_LOCALE_DIR=$prefix/share/locale
|
|
+ QALCULATE_CFLAGS=$pkg_cv_QALCULATE_CFLAGS
|
|
+ QALCULATE_LIBS=$pkg_cv_QALCULATE_LIBS
|
|
+ echo "$as_me:$LINENO: result: yes" >&5
|
|
+echo "${ECHO_T}yes" >&6
|
|
+ :
|
|
fi
|
|
|
|
|
|
-cat >>confdefs.h <<_ACEOF
|
|
-#define PACKAGE_LOCALE_DIR "$PACKAGE_LOCALE_DIR"
|
|
-_ACEOF
|
|
-
|
|
- echo "$as_me:$LINENO: result: \"$PACKAGE_LOCALE_DIR\"" >&5
|
|
-echo "${ECHO_T}\"$PACKAGE_LOCALE_DIR\"" >&6
|
|
-
|
|
-INTLTOOL_QALCULATE_DEFINITIONS_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po-defs/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po-defs/.intltool-merge-cache $(top_srcdir)/po-defs $< $@'
|
|
-
|
|
|
|
|
|
ac_config_files="$ac_config_files Makefile data/Makefile src/Makefile po/Makefile.in"
|