build: drop the libndp submodule
authorDan Winship <danw@gnome.org>
Mon, 3 Feb 2014 11:04:51 +0000 (12:04 +0100)
committerDan Winship <danw@gnome.org>
Mon, 3 Feb 2014 11:13:41 +0000 (12:13 +0100)
libndp has existed for a while now. 1.0 was released six months
ago. So drop the submodule and just require an installed package.

.gitmodules
Makefile.am
autogen.sh
configure.ac
libndp [deleted submodule]

index c31ff2a..e93bbea 100644 (file)
@@ -1,6 +1,3 @@
 [submodule "libgsystem"]
        path = libgsystem
        url = git://git.gnome.org/libgsystem
-[submodule "libndp"]
-       path = libndp
-       url = git://github.com/jpirko/libndp.git
index ab2941c..edeadf5 100644 (file)
@@ -20,8 +20,6 @@ SUBDIRS = \
        examples \
        vapi
 
-DIST_SUBDIRS = $(SUBDIRS) libndp
-
 @GNOME_CODE_COVERAGE_RULES@
 
 EXTRA_DIST = \
@@ -64,13 +62,4 @@ libgsystem_libs = $(GLIB_LIBS)
 include libgsystem/Makefile-libgsystem.am
 noinst_LTLIBRARIES = libgsystem.la
 
-if BUILD_LIBNDP
-noinst_DATA = libndp
-libndp:
-       (cd libndp && $(MAKE))
-
-clean-local:
-       (cd libndp && $(MAKE) clean)
-endif
-
-.PHONY: cscope libndp
+.PHONY: cscope
index 9e3d3d3..1b56207 100755 (executable)
@@ -35,5 +35,5 @@ AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
 
 cd $olddir
 if test -z "$NOCONFIGURE"; then
-       exec $srcdir/configure --enable-maintainer-mode "$@" --enable-static=libndp
+       exec $srcdir/configure --enable-maintainer-mode "$@"
 fi
index aa075ba..7e87b71 100644 (file)
@@ -672,28 +672,7 @@ else
 fi
 AM_CONDITIONAL(WITH_CONCHECK, test "${enable_concheck}" = "yes")
 
-dnl libndp
-AC_ARG_WITH(system-libndp, AS_HELP_STRING([--with-system-libndp=yes|no|auto], [use system libndp rather than bundled one (default: auto)]),
-            [with_system_libndp=${withval}], [with_system_libndp=auto])
-if test "$with_system_libndp" = yes; then
-    PKG_CHECK_MODULES(LIBNDP, [libndp])
-elif test "$with_system_libndp" = auto; then
-    PKG_CHECK_MODULES(LIBNDP, [libndp], [build_libndp=no],[build_libndp=yes])
-else
-    build_libndp=yes
-fi
-AM_CONDITIONAL(BUILD_LIBNDP, test "${build_libndp}" = yes)
-if test "$build_libndp" = yes; then
-    LIBNDP_CFLAGS='-I$(top_srcdir)/libndp/include'
-    LIBNDP_LIBS='$(top_builddir)/libndp/libndp/.libs/libndp.a'
-    AC_SUBST(LIBNDP_CFLAGS)
-    AC_SUBST(LIBNDP_LIBS)
-    libndp_location=bundled
-else
-    # temporary bug workaround
-    LIBNDP_CFLAGS=`echo $LIBNDP_CFLAGS | sed -e 's:/ndp.h::'`
-    libndp_location=system
-fi
+PKG_CHECK_MODULES(LIBNDP, [libndp])
 
 AC_ARG_WITH(nmtui, AS_HELP_STRING([--with-nmtui=yes|no], [Build nmtui]))
 if test "$with_nmtui" != no; then
diff --git a/libndp b/libndp
deleted file mode 160000 (submodule)
index 4376e75..0000000
--- a/libndp
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 4376e752c822444f1a26b5e1e974ddd7104ae15c