Bang Jun-young : configure: Add check for presence of _strdup() and strdup( ).
Alexandre Julliard
julliard at winehq.org
Tue Oct 16 07:59:35 CDT 2007
Module: wine
Branch: master
Commit: ff96bd6aec29d3e4809829e3e50c15e3b36d6173
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff96bd6aec29d3e4809829e3e50c15e3b36d6173
Author: Bang Jun-young <junyoung at mogua.com>
Date: Mon Oct 15 17:09:12 2007 +0900
configure: Add check for presence of _strdup() and strdup().
---
configure | 4 ++++
configure.ac | 2 ++
include/config.h.in | 6 ++++++
include/wine/port.h | 4 ++++
4 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 51b8f62..1153f74 100755
--- a/configure
+++ b/configure
@@ -15703,11 +15703,14 @@ esac
+
+
for ac_func in \
_pclose \
_popen \
_snprintf \
_spawnvp \
+ _strdup \
_stricmp \
_strnicmp \
_vsnprintf \
@@ -15756,6 +15759,7 @@ for ac_func in \
statfs \
statvfs \
strcasecmp \
+ strdup \
strerror \
strncasecmp \
strtold \
diff --git a/configure.ac b/configure.ac
index 153e269..b453dc6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1227,6 +1227,7 @@ AC_CHECK_FUNCS(\
_popen \
_snprintf \
_spawnvp \
+ _strdup \
_stricmp \
_strnicmp \
_vsnprintf \
@@ -1275,6 +1276,7 @@ AC_CHECK_FUNCS(\
statfs \
statvfs \
strcasecmp \
+ strdup \
strerror \
strncasecmp \
strtold \
diff --git a/include/config.h.in b/include/config.h.in
index 8df3a1a..c352c42 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -633,6 +633,9 @@
/* Define to 1 if you have the `strcasecmp' function. */
#undef HAVE_STRCASECMP
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
@@ -945,6 +948,9 @@
/* Define to 1 if you have the `_spawnvp' function. */
#undef HAVE__SPAWNVP
+/* Define to 1 if you have the `_strdup' function. */
+#undef HAVE__STRDUP
+
/* Define to 1 if you have the `_stricmp' function. */
#undef HAVE__STRICMP
diff --git a/include/wine/port.h b/include/wine/port.h
index b8009cc..4b94a5e 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -126,6 +126,10 @@ struct statvfs
#define pclose _pclose
#endif
+#if !defined(HAVE_STRDUP) && defined(HAVE__STRDUP)
+#define strdup _strdup
+#endif
+
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
#define snprintf _snprintf
#endif
More information about the wine-cvs
mailing list