]> andersk Git - nss_nonlocal.git/commitdiff
Autoconfiscate.
authorAnders Kaseorg <andersk@mit.edu>
Mon, 28 Jul 2008 14:12:40 +0000 (10:12 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Tue, 29 Jul 2008 09:37:13 +0000 (05:37 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Makefile.in [moved from Makefile with 66% similarity]
configure.ac [new file with mode: 0644]

similarity index 66%
rename from Makefile
rename to Makefile.in
index 19c766efa47444f1268e674e882d3d9531c287bc..3d0a3fb1c5d1b13f5e34f65ff0fde8e291c246da 100644 (file)
--- a/Makefile
@@ -1,9 +1,14 @@
-exec_prefix = /
-libdir = $(exec_prefix)/lib
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+libdir = @libdir@
 
-INSTALL = install
-CC = gcc
-CFLAGS = -O2 -Wall
+INSTALL = @INSTALL@
+CC = @CC@
+
+CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
 
 ALL_CFLAGS = $(CFLAGS) -fPIC
 ALL_LDFLAGS = $(LDFLAGS) -shared -Wl,-x
@@ -13,7 +18,7 @@ all: libnss_nonlocal.so.2 linktest
 OBJS = nonlocal-passwd.o nonlocal-group.o nonlocal-shadow.o
 
 libnss_nonlocal.so.2: $(OBJS) libnss_nonlocal.map
-       $(CC) -o $@ $(ALL_LDFLAGS) -Wl,-soname,$@ -Wl,--version-script=libnss_nonlocal.map $(OBJS) $(LOADLIBES) $(LDLIBS)
+       $(CC) -o $@ $(CFLAGS) $(ALL_LDFLAGS) -Wl,-soname,$@ -Wl,--version-script=libnss_nonlocal.map $(OBJS) $(LIBS)
 
 %.o: %.c
        $(CC) -c $(ALL_CFLAGS) $(CPPFLAGS) $<
@@ -23,7 +28,7 @@ nonlocal-group.o: nonlocal-group.c nsswitch-internal.h nonlocal.h
 nonlocal-shadow.o: nonlocal-shadow.c nsswitch-internal.h nonlocal.h
 
 linktest: libnss_nonlocal.so.2
-       $(CC) $(LDFLAGS) -nostdlib -Wl,--entry=0 -o /dev/null $^
+       $(CC) $(CFLAGS) $(LDFLAGS) -nostdlib -Wl,--entry=0 -o /dev/null $^
 
 install: libnss_nonlocal.so.2
        $(INSTALL) -d $(DESTDIR)$(libdir)
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..912830f
--- /dev/null
@@ -0,0 +1,8 @@
+AC_INIT([nss_nonlocal], [1.7], [andersk@mit.edu])
+
+AC_PREFIX_DEFAULT([/])
+AC_PROG_CC
+AC_PROG_INSTALL
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
This page took 0.487947 seconds and 5 git commands to generate.