aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2015-07-07 18:46:36 +0200
committerEven Rouault <even.rouault@spatialys.com>2015-07-07 18:46:36 +0200
commit2b5b97942016c2f18a0992b934d1b6b460391dac (patch)
tree46cffbdad4a652422cc94f6077e3ab3955e6dc0f /configure
parent396afc3312243ff4a8e95c3b9398d56c5582e30d (diff)
downloadPROJ-2b5b97942016c2f18a0992b934d1b6b460391dac.tar.gz
PROJ-2b5b97942016c2f18a0992b934d1b6b460391dac.zip
Make pj_init() locale safe and no longer modify locale (#226)
Remove setlocale() use in pj_init_ctx(), and replace uses of atof() & strtod() by their locale safe variants pj_atof() and pj_strtod(). Proj versions from now advertize #define PJ_LOCALE_SAFE 1 in proj_api.h and export pj_atof() & pj_strtod()
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index fbaf81dd..e770a0dc 100755
--- a/configure
+++ b/configure
@@ -12477,6 +12477,14 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h
fi
+ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
+if test "x$ac_cv_func_localeconv" = xyes; then :
+
+$as_echo "#define HAVE_LOCALECONV 1" >>confdefs.h
+
+fi
+
+
JNI_INCLUDE=
export JNI_INCLUDE