* dmraid configure configure.in make.tmpl.in
@ 2010-05-27 20:59 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2010-05-27 20:59 UTC (permalink / raw)
To: dm-cvs, dm-devel
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: zkabelac@sourceware.org 2010-05-27 20:59:45
Modified files:
. : configure configure.in make.tmpl.in
Log message:
Precompute dependencie in the same way as in lvm2
Add OBJECTS2/SOURCES2
Move version detection from configure.in to make.tmpl.in
Fix top_buildir problems
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/configure.diff?cvsroot=dm&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/configure.in.diff?cvsroot=dm&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/make.tmpl.in.diff?cvsroot=dm&r1=1.6&r2=1.7
--- dmraid/configure 2010/05/27 19:38:15 1.6
+++ dmraid/configure 2010/05/27 20:59:44 1.7
@@ -668,6 +668,7 @@
KLIBC
KLCC
RANLIB
+MKDIR_P
SET_MAKE
LN_S
INSTALL_DATA
@@ -2176,6 +2177,48 @@
SET_MAKE="MAKE=${MAKE-make}"
fi
+{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+done
+IFS=$as_save_IFS
+
+fi
+
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ test -d ./--version && rmdir ./--version
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -5902,18 +5945,6 @@
fi
-if test "-f tools/VERSION"; then
- DMRAID_VERSION="`cat tools/VERSION`"
-else
- DMRAID_VERSION="Unknown"
-fi
-
-if test "-f lib/version.h"; then
- DMRAID_LIB_VERSION="`sed --quiet 's/^.*\(DMRAID_LIB_VERSION\)[^_].*"\(.*\)"/\2/p' lib/version.h`"
-else
- DMRAID_LIB_VERSION="Unknown"
-fi
-
@@ -6448,6 +6479,7 @@
ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF
@@ -6931,6 +6963,11 @@
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
@@ -6987,6 +7024,7 @@
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
--- dmraid/configure.in 2010/05/27 19:38:15 1.6
+++ dmraid/configure.in 2010/05/27 20:59:45 1.7
@@ -20,6 +20,7 @@
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
+AC_PROG_MKDIR_P
AC_PROG_RANLIB
dnl Enables linking to klibc
@@ -196,18 +197,6 @@
AC_CHECK_HEADERS(getopt.h, CFLAGS="$CFLAGS -DHAVE_GETOPTLONG")
fi
-if test "-f tools/VERSION"; then
- DMRAID_VERSION="`cat tools/VERSION`"
-else
- DMRAID_VERSION="Unknown"
-fi
-
-if test "-f lib/version.h"; then
- DMRAID_LIB_VERSION="`sed --quiet 's/^.*\(DMRAID_LIB_VERSION\)[[^_]].*"\(.*\)"/\2/p' lib/version.h`"
-else
- DMRAID_LIB_VERSION="Unknown"
-fi
-
AC_SUBST(CC)
AC_SUBST(CFLAGS)
AC_SUBST(CLDFLAGS)
--- dmraid/make.tmpl.in 2010/05/27 19:38:15 1.6
+++ dmraid/make.tmpl.in 2010/05/27 20:59:45 1.7
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2004-2005 Heinz Mauelshagen, Red Hat GmbH. All rights reserved.
+# Copyright (C) 2004-2010 Heinz Mauelshagen, Red Hat GmbH. All rights reserved.
#
# See file LICENSE at the top of this source tree for license information.
#
@@ -12,6 +12,7 @@
RANLIB = @RANLIB@
SHELL = /bin/sh
INSTALL = @INSTALL@
+MKDIR_P = @MKDIR_P@
LN_S = @LN_S@
LIBS = @LIBS@
CFLAGS += @CFLAGS@
@@ -39,7 +40,8 @@
endif
# setup misc variables
-DMRAID_LIB_VERSION = @DMRAID_LIB_VERSION@
+DMRAID_VERSION := $(shell cat $(top_srcdir)/tools/VERSION)
+DMRAID_LIB_VERSION := $(shell sed --quiet 's/^.*\(DMRAID_LIB_VERSION\)[[^_]].*"\(.*\)"/\2/p' $(top_srcdir)/lib/version.h)
INSTALL_PROGRAM = $(INSTALL) $(STRIP)
INSTALL_DIR = $(INSTALL) -d
INSTALL_DATA = $(INSTALL) -m 644 -p
@@ -49,7 +51,7 @@
MAKEFLAGS = @JOBS@
endif
-SUFFIXES=.c .o .so .a
+SUFFIXES=.c .d .o .so .a
CFLAGS+=-fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline
@@ -90,6 +92,7 @@
DEPS=$(top_srcdir)/make.tmpl $(top_srcdir)/tools/VERSION Makefile
OBJECTS=$(SOURCES:%.c=%.o)
+OBJECTS2=$(SOURCES2:%.c=%.o)
SUBDIRS.install := $(SUBDIRS:=.install)
SUBDIRS.remove := $(SUBDIRS:=.remove)
@@ -124,14 +127,22 @@
$(TARGETS): $(OBJECTS)
%.o: %.c
- $(CC) -MM -MF ${@:%.o=%.d} $(INCLUDES) $(CFLAGS) $<; \
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
-%.so: $(OBJECTS) .export.sym
+%.d: %.c
+ $(MKDIR_P) $(dir $@); \
+ set -e; \
+ FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
+ DEPS=`echo $(DEPS) | sed -e 's/\\//\\\\\\//g'`; \
+ $(CC) -MM $(INCLUDES) $(DEFS) $(CFLAGS) -o $@ $<; \
+ sed -i "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d $$FILE.pot: $$DEPS /g" $@; \
+ [ -s $@ ] || $(RM) $@
+
+%.so: $(OBJECTS) $(top_srcdir)/lib/.export.sym
%.so: $(OBJECTS)
$(CC) -shared -Wl,-soname,$(notdir $@).$(DMRAID_LIB_VERSION) \
- -Wl,--version-script,.export.sym $(OBJECTS) -o $@ -ldevmapper-event
+ -Wl,--version-script,$(top_srcdir)/lib/.export.sym $(OBJECTS) -o $@ -ldevmapper-event
$(LIB_STATIC): $(OBJECTS)
$(RM) $@
@@ -147,10 +158,11 @@
config.cache config.log config.status \
Makefile make.tmpl core tools/version.h
-ifneq ($(MAKECMDGOALS),clean)
- ifneq ($(MAKECMDGOALS),distclean)
+ifeq (,$(findstring $(MAKECMDGOALS), clean distclean))
ifdef SOURCES
-include $(SOURCES:.c=.d)
endif
- endif
+ ifdef SOURCES2
+ -include $(SOURCES2:.c=.d)
+ endif
endif
^ permalink raw reply [flat|nested] 2+ messages in thread* dmraid configure configure.in make.tmpl.in
@ 2010-05-27 19:38 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2010-05-27 19:38 UTC (permalink / raw)
To: dm-cvs, dm-devel
CVSROOT: /cvs/dm
Module name: dmraid
Changes by: zkabelac@sourceware.org 2010-05-27 19:38:16
Modified files:
. : configure configure.in make.tmpl.in
Log message:
Drop unused OWNER and GROUP vars - they are not needed by installer process
Add INSTALL_DATA, INSTALL_DIR, INSTALL_PROGRAM
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/configure.diff?cvsroot=dm&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/configure.in.diff?cvsroot=dm&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/make.tmpl.in.diff?cvsroot=dm&r1=1.5&r2=1.6
--- dmraid/configure 2010/05/27 14:28:47 1.5
+++ dmraid/configure 2010/05/27 19:38:15 1.6
@@ -640,14 +640,10 @@
LIBOBJS
STATIC_LINK
SOFLAG
-OWNER
LIB_SO
-LIBSEPOL
-LIBSELINUX
FLAVOUR
LD_DEPS
JOBS
-GROUP
DIETLIBC
DMRAID_LIB_VERSION
DMRAID_VERSION
@@ -731,8 +727,6 @@
ac_user_opts='
enable_option_checking
enable_klibc
-with_user
-with_group
enable_debug
enable_debug_malloc
enable_dietlibc
@@ -1383,7 +1377,7 @@
--enable-debug Enable debugging
--enable-debug_malloc Enable malloc debugging
--enable-dietlibc Use this to link the tools to dietlibc
- --enable-jobs=NUM Number of jobs to run simultaneously
+ --enable-jobs=NUM Number of make jobs to run simultaneously
--enable-mini Use this to create a minimal binary suitable for
early boot environments
--enable-led Use this to enable LED support
@@ -1396,12 +1390,6 @@
tools to it. Default is static libdmraid
--disable-testing Disable testing with mapped devices
-Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-user=USER Set the owner of installed files
- --with-group=GROUP Set the group owner of installed files
-
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
@@ -5196,24 +5184,6 @@
-
-# Check whether --with-user was given.
-if test "${with_user+set}" = set; then
- withval=$with_user; OWNER="$withval"
-else
- OWNER="root"
-fi
-
-
-
-# Check whether --with-group was given.
-if test "${with_group+set}" = set; then
- withval=$with_group; GROUP="$withval"
-else
- GROUP="root"
-fi
-
-
# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then
enableval=$enable_debug; DEBUG=$enableval
@@ -5960,10 +5930,6 @@
-
-
-
-
ac_config_files="$ac_config_files include/Makefile lib/Makefile man/Makefile tools/Makefile tools/version.h Makefile make.tmpl"
cat >confcache <<\_ACEOF
--- dmraid/configure.in 2010/05/27 14:28:47 1.5
+++ dmraid/configure.in 2010/05/27 19:38:15 1.6
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2004-2005 Heinz Mauelshagen, Red Hat GmbH. All rights reserved.
+# Copyright (C) 2004-2010 Heinz Mauelshagen, Red Hat GmbH. All rights reserved.
#
# See file LICENSE at the top of this source tree for license information.
#
@@ -62,18 +62,6 @@
dnl -- prefix is /usr by default, the exec_prefix default is setup later
AC_PREFIX_DEFAULT(/usr/share)
-dnl -- setup the ownership of the files
-AC_ARG_WITH(user,
- [ --with-user=USER Set the owner of installed files ],
- [ OWNER="$withval" ],
- [ OWNER="root" ])
-
-dnl -- setup the group ownership of the files
-AC_ARG_WITH(group,
- [ --with-group=GROUP Set the group owner of installed files ],
- [ GROUP="$withval" ],
- [ GROUP="root" ])
-
dnl Enable Debugging
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug], [Enable debugging]),
@@ -228,13 +216,11 @@
AC_SUBST(DMRAID_VERSION)
AC_SUBST(DMRAID_LIB_VERSION)
AC_SUBST(DIETLIBC)
-AC_SUBST(GROUP)
AC_SUBST(JOBS)
AC_SUBST(LD_DEPS)
AC_SUBST(FLAVOUR)
AC_SUBST(LIBS)
AC_SUBST(LIB_SO)
-AC_SUBST(OWNER)
AC_SUBST(SOFLAG)
AC_SUBST(STATIC_LINK)
--- dmraid/make.tmpl.in 2010/05/27 13:29:45 1.5
+++ dmraid/make.tmpl.in 2010/05/27 19:38:15 1.6
@@ -39,10 +39,10 @@
endif
# setup misc variables
-# define the ownership variables for the binaries and man pages
-OWNER = @OWNER@
-GROUP = @GROUP@
DMRAID_LIB_VERSION = @DMRAID_LIB_VERSION@
+INSTALL_PROGRAM = $(INSTALL) $(STRIP)
+INSTALL_DIR = $(INSTALL) -d
+INSTALL_DATA = $(INSTALL) -m 644 -p
# The number of jobs to run, if blank, defaults to the make standard
ifndef MAKEFLAGS
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-27 20:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 20:59 dmraid configure configure.in make.tmpl.in zkabelac
-- strict thread matches above, loose matches on Subject: below --
2010-05-27 19:38 zkabelac
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.