build: move argp-standalone into contrib/ directory
Change-Id: Iedcddf95c3577da644c0aebbb297b04c93f1b6fe BUG: 1081274 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/7352 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
This commit is contained in:
parent
d8dd404914
commit
b66568b6cb
4
.gitignore
vendored
4
.gitignore
vendored
@ -18,6 +18,8 @@ py-compile
|
||||
*.o
|
||||
*.tar.gz
|
||||
*.rpm
|
||||
*.diff
|
||||
*.patch
|
||||
.libs
|
||||
.deps
|
||||
Makefile
|
||||
@ -27,7 +29,7 @@ stamp-h1
|
||||
api/examples/__init__.py
|
||||
api/examples/__init__.py?
|
||||
api/examples/setup.py
|
||||
argp-standalone/libargp.a
|
||||
contrib/argp-standalone/libargp.a
|
||||
contrib/uuid/uuid_types.h
|
||||
extras/init.d/glusterd-Debian
|
||||
extras/init.d/glusterd-Redhat
|
||||
|
13
Makefile.am
13
Makefile.am
@ -6,7 +6,7 @@ EXTRA_DIST = autogen.sh \
|
||||
gen-headers.py run-tests.sh \
|
||||
$(shell find $(top_srcdir)/tests -type f -print)
|
||||
|
||||
SUBDIRS = argp-standalone libglusterfs rpc api xlators glusterfsd \
|
||||
SUBDIRS = contrib/argp-standalone libglusterfs rpc api xlators glusterfsd \
|
||||
$(FUSERMOUNT_SUBDIR) doc extras cli @SYNCDAEMON_SUBDIR@
|
||||
|
||||
pkgconfigdir = @pkgconfigdir@
|
||||
@ -20,10 +20,13 @@ gitclean: distclean
|
||||
find . -name mount.glusterfs -exec rm -f {} \;
|
||||
rm -fr autom4te.cache
|
||||
rm -f missing aclocal.m4 config.h.in config.guess config.sub ltmain.sh install-sh configure depcomp
|
||||
rm -fr argp-standalone/autom4te.cache
|
||||
rm -f argp-standalone/aclocal.m4 argp-standalone/config.h.in
|
||||
rm -f argp-standalone/configure argp-standalone/depcomp
|
||||
rm -f argp-standalone/install-sh argp-standalone/missing
|
||||
rm -fr $(CONTRIBDIR)/argp-standalone/autom4te.cache
|
||||
rm -f $(CONTRIBDIR)/argp-standalone/aclocal.m4
|
||||
rm -f $(CONTRIBDIR)/argp-standalone/config.h.in
|
||||
rm -f $(CONTRIBDIR)/argp-standalone/configure
|
||||
rm -f $(CONTRIBDIR)/argp-standalone/depcomp
|
||||
rm -f $(CONTRIBDIR)/argp-standalone/install-sh
|
||||
rm -f $(CONTRIBDIR)/argp-standalone/missing
|
||||
|
||||
dist-hook:
|
||||
(cd $(srcdir) && git diff && echo ===== git log ==== && git log) > $(distdir)/ChangeLog
|
||||
|
@ -64,7 +64,7 @@ fi
|
||||
if [ "x${PYTHONBIN}" = "x" ]; then
|
||||
PYTHONBIN=python
|
||||
fi
|
||||
env ${PYTHONBIN} -V > /dev/null 2>&1
|
||||
env ${PYTHONBIN} -V > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
MISSING="$MISSING python"
|
||||
fi
|
||||
@ -108,7 +108,7 @@ $AUTOMAKE --add-missing --copy --foreign
|
||||
|
||||
# Run autogen in the argp-standalone sub-directory
|
||||
echo "Running autogen.sh in argp-standalone ..."
|
||||
( cd argp-standalone;./autogen.sh )
|
||||
( cd contrib/argp-standalone;./autogen.sh )
|
||||
|
||||
# Instruct user on next steps
|
||||
echo
|
||||
|
@ -193,6 +193,7 @@ AC_PROG_CC
|
||||
AC_DISABLE_STATIC
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
|
||||
# Initialize CFLAGS before usage
|
||||
AC_ARG_ENABLE([debug],
|
||||
AC_HELP_STRING([--enable-debug],
|
||||
@ -641,13 +642,13 @@ AC_CHECK_FUNC([clock_gettime], [has_monotonic_clock=yes], AC_CHECK_LIB([rt], [cl
|
||||
|
||||
dnl Check for argp
|
||||
AC_CHECK_HEADER([argp.h], AC_DEFINE(HAVE_ARGP, 1, [have argp]))
|
||||
AC_CONFIG_SUBDIRS(argp-standalone)
|
||||
AC_CONFIG_SUBDIRS(contrib/argp-standalone)
|
||||
|
||||
BUILD_ARGP_STANDALONE=no
|
||||
if test "x${ac_cv_header_argp_h}" = "xno"; then
|
||||
BUILD_ARGP_STANDALONE=yes
|
||||
ARGP_STANDALONE_CPPFLAGS='-I${top_srcdir}/argp-standalone'
|
||||
ARGP_STANDALONE_LDADD='${top_builddir}/argp-standalone/libargp.a'
|
||||
ARGP_STANDALONE_CPPFLAGS='-I${top_srcdir}/contrib/argp-standalone'
|
||||
ARGP_STANDALONE_LDADD='${top_builddir}/contrib/argp-standalone/libargp.a'
|
||||
fi
|
||||
|
||||
AC_SUBST(ARGP_STANDALONE_CPPFLAGS)
|
||||
|
@ -17,7 +17,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
|
||||
# errno.h to declare program_invocation_name. Enable it on all
|
||||
# systems; no problems have been reported with it so far.
|
||||
AC_GNU_SOURCE
|
||||
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_MAKE_SET
|
Loading…
x
Reference in New Issue
Block a user