Created
October 3, 2014 07:56
-
-
Save ncopa/a010e9ea6736f1f284a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Substitute ALL_LINGUAS so we can use it in po/Makefile | |
# Set DATADIRNAME correctly if it is not set yet | |
# (copied from glib-gettext.m4) | |
if test -z "$DATADIRNAME"; then | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* end confdefs.h. */ | |
int | |
main () | |
{ | |
extern int _nl_msg_cat_cntr; | |
return _nl_msg_cat_cntr | |
; | |
return 0; | |
} | |
_ACEOF | |
if ac_fn_c_try_link "$LINENO"; then : | |
DATADIRNAME=share | |
else | |
case $host in | |
*-*-solaris*) | |
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" | |
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : | |
DATADIRNAME=share | |
else | |
DATADIRNAME=lib | |
fi | |
;; | |
*) | |
DATADIRNAME=lib | |
;; | |
esac | |
fi | |
rm -f core conftest.err conftest.$ac_objext \ | |
conftest$ac_exeext conftest.$ac_ext | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment