Move base into lib
authorNicolas Williams <nico@cryptonector.com>
Thu, 21 Jun 2012 00:31:14 +0000 (19:31 -0500)
committerNicolas Williams <nico@cryptonector.com>
Thu, 21 Jun 2012 00:32:08 +0000 (19:32 -0500)
    This involves reverting dd267e8fc3378b2021d30d643f8cde9f16a259f1,
    but that gets lost in the move.

    This builds on Ubuntu and Windows at this time.

31 files changed:
Makefile.am
NTMakefile
cf/Makefile.am.common
configure.ac
lib/Makefile.am
lib/NTMakefile
lib/base/Makefile.am [moved from base/Makefile.am with 95% similarity]
lib/base/NTMakefile [moved from base/NTMakefile with 97% similarity]
lib/base/array.c [moved from base/array.c with 100% similarity]
lib/base/baselocl.h [moved from base/baselocl.h with 99% similarity]
lib/base/bool.c [moved from base/bool.c with 100% similarity]
lib/base/bsearch.c [moved from base/bsearch.c with 100% similarity]
lib/base/data.c [moved from base/data.c with 100% similarity]
lib/base/db.c [moved from base/db.c with 99% similarity]
lib/base/dict.c [moved from base/dict.c with 100% similarity]
lib/base/error.c [moved from base/error.c with 100% similarity]
lib/base/heimbase.c [moved from base/heimbase.c with 100% similarity]
lib/base/heimbase.h [moved from base/heimbase.h with 100% similarity]
lib/base/heimbasepriv.h [moved from base/heimbasepriv.h with 100% similarity]
lib/base/heimqueue.h [moved from base/heimqueue.h with 100% similarity]
lib/base/json.c [moved from base/json.c with 100% similarity]
lib/base/null.c [moved from base/null.c with 100% similarity]
lib/base/number.c [moved from base/number.c with 100% similarity]
lib/base/roken_rename.h [moved from base/roken_rename.h with 100% similarity]
lib/base/string.c [moved from base/string.c with 100% similarity]
lib/base/test_base.c [moved from base/test_base.c with 100% similarity]
lib/base/version-script.map [moved from base/version-script.map with 100% similarity]
lib/hx509/Makefile.am
lib/krb5/Makefile.am
lib/roken/NTMakefile
lib/roken/roken.h.in

index 8d875cb9b5592ed404f0ff7831f00b03c7a1996a..447670123631a7a473ad351936a5c737ef50b39a 100644 (file)
@@ -6,7 +6,7 @@ if KCM
 kcm_dir = kcm
 endif
 
-SUBDIRS=  include lib/roken base lib kuser kdc admin kadmin kpasswd 
+SUBDIRS=  include lib kuser kdc admin kadmin kpasswd 
 SUBDIRS+= $(kcm_dir) appl tools tests packages etc po
 
 if HEIMDAL_DOCUMENTATION
index fcd60a3d3cbd42331e268addadd2798679443bd3..00c5a54f03a017e8c4cd494525c2502bd37d21ce 100644 (file)
@@ -33,7 +33,7 @@
 thirdparty=thirdparty
 !endif
 
-SUBDIRS = include lib\roken base lib kuser kdc admin kadmin kpasswd appl doc \
+SUBDIRS = include lib kuser kdc admin kadmin kpasswd appl doc \
        tools tests packages etc $(thirdparty) packages\windows\installer
 
 !include windows/NTMakefile.w32
index cb1f55da727c1c10cc4fab48e6a71be35ade77be..f69b86f8ebcab28396befd9cfb1184d21da620d1 100644 (file)
@@ -244,7 +244,7 @@ LIB_krb5 = $(top_builddir)/lib/krb5/libkrb5.la \
 LIB_gssapi = $(top_builddir)/lib/gssapi/libgssapi.la
 endif
 
-LIB_heimbase = $(top_builddir)/base/libheimbase.la
+LIB_heimbase = $(top_builddir)/lib/base/libheimbase.la
 
 if DCE
 LIB_kdfs = $(top_builddir)/lib/kdfs/libkdfs.la
index b82af4fa6f57956e9a183f758c0d508dfa370053..f88da7822a6c06655e35995d43363b5c80f16efd 100644 (file)
@@ -609,7 +609,7 @@ AC_CONFIG_FILES(Makefile            \
        include/hcrypto/Makefile        \
        include/kadm5/Makefile          \
        lib/Makefile                    \
-       base/Makefile                   \
+       lib/base/Makefile                       \
        lib/asn1/Makefile               \
        lib/com_err/Makefile            \
        lib/hcrypto/Makefile            \
index bed19304addffd37b477d5668af62cbc154ce4e0..dc65d96e8bd35472e2753631e4eb0731149a1ecb 100644 (file)
@@ -23,6 +23,7 @@ endif
 
 SUBDIRS = \
        roken \
+       base \
        vers \
        $(dir_editline) \
        $(dir_com_err) \
@@ -42,4 +43,4 @@ SUBDIRS = \
        $(dir_otp) \
        $(dir_dce)
 
-EXTRA_DIST = NTMakefile heimdal
\ No newline at end of file
+EXTRA_DIST = NTMakefile heimdal
index 8530ab9a1dc25a9a7b95876a6773528432aa4b3e..da43aa2a09ef6fca2ab5ed14d978e91b90d79f8c 100644 (file)
@@ -40,7 +40,7 @@ dir_dce = kdfs
 dir_hcrypto = hcrypto
 !endif
 
-SUBDIRS = vers com_err sl wind asn1 sqlite \
+SUBDIRS = roken base vers com_err sl wind asn1 sqlite \
        $(dir_hcrypto) hx509 krb5 heimdal ntlm kafs gssapi hdb \
        kadm5 $(dir_45) $(dir_otp) $(dir_dce) ..\packages\windows\assembly
 
similarity index 95%
rename from base/Makefile.am
rename to lib/base/Makefile.am
index 105a03608f1953f4fde8f2d3c51ffbeaa02d8780..2298381324bab20059df4b15a265652c101a50c1 100644 (file)
@@ -52,4 +52,4 @@ EXTRA_DIST = NTMakefile version-script.map
 
 base64.c:
        $(RM) base64.c
-       $(LN_S) $(srcdir)/../lib/roken/base64.c .
+       $(LN_S) $(srcdir)/../roken/base64.c .
similarity index 97%
rename from base/NTMakefile
rename to lib/base/NTMakefile
index 87abf3b9357e6acd88448589466d501874d90a01..5413098103da84593b922193b7de3a399f321182 100644 (file)
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
-RELDIR=base
+RELDIR=lib\base
 
 intcflags=-I$(SRCDIR) -I$(OBJ)
 
-!include ../windows/NTMakefile.w32
+!include ../../windows/NTMakefile.w32
 
 INCFILES=$(INCDIR)\heimbase.h
 
similarity index 100%
rename from base/array.c
rename to lib/base/array.c
similarity index 99%
rename from base/baselocl.h
rename to lib/base/baselocl.h
index c7b10bfa8ef48fa78d7f65731f2fddb8fd1abec7..ce9b37d28e51768998eea2278a1e5fce6d54bd32 100644 (file)
@@ -60,6 +60,8 @@
 #define bindtextdomain(package, localedir)
 #endif
 
+#include <roken.h>
+
 #include "heimqueue.h"
 #include "heim_threads.h"
 #include "heimbase.h"
similarity index 100%
rename from base/bool.c
rename to lib/base/bool.c
similarity index 100%
rename from base/bsearch.c
rename to lib/base/bsearch.c
similarity index 100%
rename from base/data.c
rename to lib/base/data.c
similarity index 99%
rename from base/db.c
rename to lib/base/db.c
index ae7244c5d9240fff4ebcb6fc791db47072587b7a..3ce577dfee71e5c558b1f28d4a5988d40bdb7f16 100644 (file)
--- a/base/db.c
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifndef WIN32
-#include <sys/file.h>
-#endif
-#ifdef HAVE_IO_H
+#ifdef WIN32
 #include <io.h>
+#else
+#include <sys/file.h>
 #endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
similarity index 100%
rename from base/dict.c
rename to lib/base/dict.c
similarity index 100%
rename from base/error.c
rename to lib/base/error.c
similarity index 100%
rename from base/heimbase.c
rename to lib/base/heimbase.c
similarity index 100%
rename from base/heimbase.h
rename to lib/base/heimbase.h
similarity index 100%
rename from base/heimbasepriv.h
rename to lib/base/heimbasepriv.h
similarity index 100%
rename from base/heimqueue.h
rename to lib/base/heimqueue.h
similarity index 100%
rename from base/json.c
rename to lib/base/json.c
similarity index 100%
rename from base/null.c
rename to lib/base/null.c
similarity index 100%
rename from base/number.c
rename to lib/base/number.c
similarity index 100%
rename from base/roken_rename.h
rename to lib/base/roken_rename.h
similarity index 100%
rename from base/string.c
rename to lib/base/string.c
similarity index 100%
rename from base/test_base.c
rename to lib/base/test_base.c
index 34687c7090e1567d961ee43a4b4bb780176811c6..a113deb34db0760fd9fb543850776e843691dede 100644 (file)
@@ -96,7 +96,7 @@ libhx509_la_LIBADD = \
        $(LIB_hcrypto) \
        $(top_builddir)/lib/asn1/libasn1.la \
        $(top_builddir)/lib/wind/libwind.la \
-       $(top_builddir)/base/libheimbase.la \
+       $(top_builddir)/lib/base/libheimbase.la \
        $(LIBADD_roken) \
        $(LIB_dlopen)
 
index 727d05f1d78fa8eaf490b9d98f81221be29d3d28..795e4db9c835635e374f9f0250346806afe07bf6 100644 (file)
@@ -67,7 +67,7 @@ libkrb5_la_LIBADD = \
        $(top_builddir)/lib/asn1/libasn1.la \
        $(top_builddir)/lib/ipc/libheim-ipcc.la \
        $(top_builddir)/lib/wind/libwind.la \
-       $(top_builddir)/base/libheimbase.la \
+       $(top_builddir)/lib/base/libheimbase.la \
        $(LIB_pkinit) \
        $(use_sqlite) \
        $(LIB_com_err) \
index 90162b5af7cc9efaba1a5f4a7575afb1b14dccbd..c69f157651454814738e6a2e960d29efeb2fc613 100644 (file)
@@ -163,12 +163,11 @@ INCFILES =                        \
        $(INCDIR)\stdbool.h     \
        $(INCDIR)\syslog.h      \
        $(INCDIR)\vis.h         \
+!ifndef HAVE_STDINT_H
+       $(INCDIR)\stdint.h      \
+!endif
        $(INCDIR)\xdbm.h
 
-#!ifndef HAVE_STDINT_H
-#INCFILES += $(INCDIR)\stdint.h
-#!endif
-
 clean::
        -$(RM) $(XHEADERS)
 
index d46af44de333738e943c0d9639d67d8947ccd7ca..db4433a7e461524f009c2d4cc6124a282bb35ba5 100644 (file)
@@ -104,7 +104,9 @@ typedef int rk_socket_t;
 #endif
 
 #ifdef _MSC_VER
+#ifndef HAVE_STDINT_H
 #include <intsafe.h>
+#endif
 
 /* Declarations for Microsoft Visual C runtime on Windows */