* movemail.c: USE_STRING_H -> HAVE_STRING_H; fix HAVE_STLIB_H to
authorTom Yu <tlyu@mit.edu>
Tue, 20 Jun 1995 19:04:30 +0000 (19:04 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 20 Jun 1995 19:04:30 +0000 (19:04 +0000)
dtrt.
* configure.in: added missing tests for string.h and stdlib.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6099 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/movemail/ChangeLog
src/appl/movemail/configure.in
src/appl/movemail/movemail.c

index 9e46edd6c6d7ae58f7c4d260a1ba492cc5815985..bbf68952f4b0e00c711edb2a2adb076cf23407a6 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jun 20 13:09:51 1995  Tom Yu  (tlyu@dragons-lair)
+
+       * movemail.c: USE_STRING_H -> HAVE_STRING_H; fix HAVE_STLIB_H to
+       dtrt.
+       * configure.in: added missing tests for string.h and stdlib.h
 
 Thu Jun 15 17:37:08 EDT 1995   Paul Park       (pjpark@mit.edu)
        * Makefile.in - Change explicit library names to -l<lib> form, and
index fd1fcce35044da4cf8a16b0ccaeb744a813cbc26..f6e2469203feeeb1fd37779cfcd2513df4c3c76f 100644 (file)
@@ -2,6 +2,6 @@ AC_INIT(movemail.c)
 CONFIG_RULES
 AC_PROG_INSTALL
 CHECK_FCNTL
-AC_HAVE_HEADERS(unistd.h)
+AC_HAVE_HEADERS(stdlib.h string.h unistd.h)
 V5_USE_SHARED_LIB
 V5_AC_OUTPUT_MAKEFILE
index 7fa8bd0f7973e74196f554ca92df5d8c1f3411f5..ef69e0700092675d9b968806a087ad3b8f0d4c0e 100644 (file)
@@ -84,22 +84,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/locking.h>
 #endif
 
-#ifdef HAS_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #else
-#ifdef __STDC__
-#ifdef NO_STDLIB_H
-#include <fake-stdlib.h>
-#else
-#include <stdlib.h>
-#endif /* NO_STDLIB_H */
 #else
 extern char *malloc(), *realloc(), *calloc();
 extern char *getenv();
-#endif /* ! __STDC__ */
-#endif /* HAS_STDLIB_H */
+#endif /* HAVE_STDLIB_H */
 
-#ifdef USE_STRING_H
+#ifdef HAVE_STRING_H
 #include <string.h>
 #else
 #include <strings.h>