configure: on darwin add CoreFoundation to flags before checking for gettext
macOS needs to link to CoreFoundation for gettext to work. We reorder the autoconf tests so CoreFoundation is added to LIBS earlier and the -lintl test does not fail (which would exclude it from the final set of flags).
This commit is contained in:
parent
7e43373317
commit
1f9fa480a0
10
configure.ac
10
configure.ac
|
@ -2839,6 +2839,11 @@ void *x = uuid_enc_be
|
||||||
# pthread (first!) on Linux
|
# pthread (first!) on Linux
|
||||||
AC_SEARCH_LIBS(sem_init, pthread rt posix4)
|
AC_SEARCH_LIBS(sem_init, pthread rt posix4)
|
||||||
|
|
||||||
|
if test $ac_sys_system = Darwin
|
||||||
|
then
|
||||||
|
LIBS="$LIBS -framework CoreFoundation"
|
||||||
|
fi
|
||||||
|
|
||||||
# check if we need libintl for locale functions
|
# check if we need libintl for locale functions
|
||||||
AC_CHECK_LIB(intl, textdomain,
|
AC_CHECK_LIB(intl, textdomain,
|
||||||
[AC_DEFINE(WITH_LIBINTL, 1,
|
[AC_DEFINE(WITH_LIBINTL, 1,
|
||||||
|
@ -5169,11 +5174,6 @@ if test "x$ac_cv_file__dev_ptc" = xyes; then
|
||||||
[Define to 1 if you have the /dev/ptc device file.])
|
[Define to 1 if you have the /dev/ptc device file.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $ac_sys_system = Darwin
|
|
||||||
then
|
|
||||||
LIBS="$LIBS -framework CoreFoundation"
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([for %zd printf() format support], ac_cv_have_size_t_format, [dnl
|
AC_CACHE_CHECK([for %zd printf() format support], ac_cv_have_size_t_format, [dnl
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
Loading…
Reference in New Issue