]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Rely on the compiler's include search path to find config.h files.
authorTim Kientzle <kientzle@gmail.com>
Sun, 18 Jan 2009 19:22:22 +0000 (14:22 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 18 Jan 2009 19:22:22 +0000 (14:22 -0500)
This works much better when building with a variety of build systems;
all of them can edit the include path but not all of them put the
built configure files in the same place.

SVN-Revision: 443

cpio/test/test.h
libarchive/test/test.h
tar/test/test.h

index 431d5d7c4d5d6ef9541c0adaf2738d073ccc01a0..b2af8e43f2e22f3eab9f5451dba5d23de0b90281 100644 (file)
  */
 #if defined(HAVE_CONFIG_H)
 /* Most POSIX platforms use the 'configure' script to build config.h */
-#include "../../config.h"
+#include "config.h"
 #elif defined(__FreeBSD__)
 /* Building as part of FreeBSD system requires a pre-built config.h. */
-#include "../config_freebsd.h"
+#include "config_freebsd.h"
 #elif defined(_WIN32)
 /* Win32 can't run the 'configure' script. */
-#include "../config_windows.h"
+#include "config_windows.h"
 #else
 /* Warn if the library hasn't been (automatically or manually) configured. */
 #error Oops: No config.h and no pre-built configuration in test.h.
index 3d2d9f2b94cc1ba55b7cb286bb10a1cf8a733720..f610fa0fd0d923f40dc8d404303f0fdd3630a6b3 100644 (file)
  */
 #if defined(HAVE_CONFIG_H)
 /* Most POSIX platforms use the 'configure' script to build config.h */
-#include "../../config.h"
+#include "config.h"
 #elif defined(__FreeBSD__)
 /* Building as part of FreeBSD system requires a pre-built config.h. */
-#include "../config_freebsd.h"
+#include "config_freebsd.h"
 #elif defined(_WIN32)
 /* Win32 can't run the 'configure' script. */
-#include "../config_windows.h"
+#include "config_windows.h"
 #else
 /* Warn if the library hasn't been (automatically or manually) configured. */
 #error Oops: No config.h and no pre-built configuration in test.h.
index 276c37eb883d2f35612d8c123a82f379c68b0ed1..f050004aba65b1eeeb18f53d43ed64fb59b0c8d8 100644 (file)
  */
 #if defined(HAVE_CONFIG_H)
 /* Most POSIX platforms use the 'configure' script to build config.h */
-#include "../../config.h"
+#include "config.h"
 #elif defined(__FreeBSD__)
 /* Building as part of FreeBSD system requires a pre-built config.h. */
-#include "../config_freebsd.h"
+#include "config_freebsd.h"
 #elif defined(_WIN32)
 /* Win32 can't run the 'configure' script. */
-#include "../config_windows.h"
+#include "config_windows.h"
 #else
 /* Warn if the library hasn't been (automatically or manually) configured. */
 #error Oops: No config.h and no pre-built configuration in test.h.