summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2011-09-21 16:35:21 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2011-09-21 16:35:21 +0000
commit80a0e534c02c0ad89a4a468cbffad49a3a03a114 (patch)
tree8aa01157181c0c144f167cc9332f2c41d86111cd /configure
parentd487da7eb645a8813f1b8eba10e65b1c2cfd0386 (diff)
downloadlocaledef-master.tar.gz
localedef-master.tar.xz
* configure.ac: Test for locale_t.HEADmaster
* Makefile.in (DEFINES): Add -DNOT_IN_libc. (INCLUDES): Move -I$(srcdir)/include before -Iglibc/locale. * include/locale.h: New. * include/ctype.h (__isalnum_l, __isalpha_l, __isdigit_l) (__tolower_l): Define. * configure, config.h.in: Regenerate. git-svn-id: svn://svn.eglibc.org/trunk/localedef@15409 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure104
1 files changed, 104 insertions, 0 deletions
diff --git a/configure b/configure
index b1da7af..888b16e 100755
--- a/configure
+++ b/configure
@@ -4339,6 +4339,110 @@ _ACEOF
fi
+{ $as_echo "$as_me:$LINENO: checking for locale_t" >&5
+$as_echo_n "checking for locale_t... " >&6; }
+if test "${ac_cv_type_locale_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_locale_t=no
+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 ()
+{
+if (sizeof (locale_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ 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 ()
+{
+if (sizeof ((locale_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_locale_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
+$as_echo "$ac_cv_type_locale_t" >&6; }
+if test "x$ac_cv_type_locale_t" = x""yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LOCALE_T 1
+_ACEOF
+
+fi
+
{ $as_echo "$as_me:$LINENO: checking for __compar_fn_t" >&5
$as_echo_n "checking for __compar_fn_t... " >&6; }
if test "${ac_cv_type___compar_fn_t+set}" = set; then