autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

err... this is odd


From: Mirar
Subject: err... this is odd
Date: 17 Nov 2000 15:20:59 +0100

The following autoconf code:

AC_CHECK_FUNC(gettext, [AC_DEFINE(HAVE_GETTEXT)], 
        AC_CHECK_LIB(intl, gettext, [LIBS="$LIBS -lintl"
                                     AC_DEFINE(HAVE_GETTEXT)],
                         INTLIBS="" ))

Seems to expand to:

 | echo "configure:2100: checking for gettext" >&5
 | echo $ECHO_N "checking for gettext... $ECHO_C" >&6
 | if test "${ac_cv_func_gettext+set}" = set; then
 |   echo $ECHO_N "(cached) $ECHO_C" >&6
 | else
 |   cat >conftest.$ac_ext <<_ACEOF
 | #line 2106 "configure"
 | #include "confdefs.h"
 | /* System header to define __stub macros and hopefully few prototypes,
 |     which can conflict with char gettext (); below.  */
[...]
 | #define HAVE_GETTEXT 1
 | EOF
 | 
 | else
>|     LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
>|               nonstandard directory <lib dir>
 | ac_env_LDFLAGS_set=${LDFLAGS+set}
 | ac_env_LDFLAGS_value=$LDFLAGS
 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 | ac_cv_env_LDFLAGS_value=$LDFLAGS
 | 
 | echo "configure:2161: checking for gettext in -lintl" >&5
 | echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
 | if test "${ac_cv_lib_intl_gettext+set}" = set; then
[...]
 | 
 | else
 |   INTLIBS=""
 | fi
 | 
 | fi

which obviously doesn't work. 

It didn't in my old autoconf. I don't see why it's broken now, but I
guess it's because I installed the CVS version.

autoconf (or autoheader?) also complains on the use of AF_UNIX and
AF_INET inside tested C code in configure.in, but it's kind of hard to
test socket code without using those #define's.

/Mirar




reply via email to

[Prev in Thread] Current Thread [Next in Thread]