]> granicus.if.org Git - postgis/commitdiff
Detect asprintf, vasprintf, fseeko
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 26 Jan 2012 20:19:42 +0000 (20:19 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 26 Jan 2012 20:19:42 +0000 (20:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8938 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac
postgis_config.h.in

index 7adb3a38020c061f43a96c572363d558abf21277..2b1644896eae78200b21d25162460ffc039bd7bc 100644 (file)
@@ -84,12 +84,13 @@ AC_CHECK_HEADER([ieeefp.h], [HAVE_IEEEFP_H=1], [HAVE_IEEEFP_H=0])
 AC_DEFINE_UNQUOTED([HAVE_IEEEFP_H], [$HAVE_IEEEFP_H], [ieeefp.h header])
 
 dnl
-dnl Check for platform-specific printing functions
+dnl Check for platform-specific functions
 dnl
 AC_CHECK_FUNC(vasprintf, [HAVE_VASPRINTF=1], [HAVE_VASPRINTF=0])
+AC_DEFINE([HAVE_VASPRINTF])
 AC_CHECK_FUNC(asprintf, [HAVE_ASPRINTF=1], [HAVE_ASPRINTF=0])
-AC_SUBST([HAVE_VASPRINTF])
-AC_SUBST([HAVE_ASPRINTF])
+AC_DEFINE([HAVE_ASPRINTF])
+AC_FUNC_FSEEKO()
 
 dnl 
 dnl MingW requires use of pwd -W to give proper Windows (not MingW) paths 
index f7762214d231f39d541b3e7c2c4e9d583c2d2442..0012b735ed293fecd0644496e27ecaa655a3d790 100644 (file)
    */
 #undef HAVE_DCGETTEXT
 
+/* Define for some functions we are interested in */
+#undef HAVE_VASPRINTF
+#undef HAVE_ASPRINTF
+#undef HAVE_FSEEKO
+
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #undef HAVE_DLFCN_H