about summary refs log tree commit diff
path: root/pm_config.in.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-07-25 15:26:11 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-07-25 15:26:11 +0000
commitf30acda48fceb2f3382bd85827077a11b09ef6b6 (patch)
treec5f3686d90001afee141624ceee2cac62f692878 /pm_config.in.h
parentf1c9233545a83c6b9a6258a13d38106807e0ed55 (diff)
downloadnetpbm-mirror-f30acda48fceb2f3382bd85827077a11b09ef6b6.tar.gz
netpbm-mirror-f30acda48fceb2f3382bd85827077a11b09ef6b6.tar.xz
netpbm-mirror-f30acda48fceb2f3382bd85827077a11b09ef6b6.zip
Use system vasprintf on Mac OS X
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1993 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pm_config.in.h')
-rw-r--r--pm_config.in.h31
1 files changed, 6 insertions, 25 deletions
diff --git a/pm_config.in.h b/pm_config.in.h
index d8e578a3..9459be02 100644
--- a/pm_config.in.h
+++ b/pm_config.in.h
@@ -99,31 +99,6 @@
 #if defined(SYSV)
 #include <malloc.h>
 #endif
-/* extern char* malloc(); */
-/* extern char* realloc(); */
-/* extern char* calloc(); */
-
-/* CONFIGURE: Some systems don't have vfprintf(), which we need for the
-** error-reporting routines.  If you compile and get a link error about
-** this routine, uncomment the first define, which gives you a vfprintf
-** that uses the theoretically non-portable but fairly common routine
-** _doprnt().  If you then get a link error about _doprnt, or
-** message-printing doesn't look like it's working, try the second
-** define instead.
-*/
-/* #define NEED_VFPRINTF1 */
-/* #define NEED_VFPRINTF2 */
-
-/* CONFIGURE: Some systems don't have strstr(), which some routines need.
-** If you compile and get a link error about this routine, uncomment the
-** define, which gives you a strstr.
-*/
-/* #define NEED_STRSTR */
-
-/* CONFIGURE: Set this option if your compiler uses strerror(errno)
-** instead of sys_errlist[errno] for error messages.
-*/
-#define A_STRERROR
 
 /* MSVCRT means we're using the Microsoft Visual C++ runtime library.
 
@@ -161,6 +136,12 @@
 
 /* #define HAVE_SETMODE */
 
+#if (defined(__GLIBC__) || defined(__GNU_LIBRARY__) || defined(__APPLE__))
+  #define HAVE_VASPRINTF 1
+#else
+  #define HAVE_VASPRINTF 0
+#endif
+
 #ifdef __amigaos__
 #include <clib/exec_protos.h>
 #define getpid() ((pid_t)FindTask(NULL))