From: Ryan Bloom Date: Wed, 26 Apr 2000 21:08:26 +0000 (+0000) Subject: Fix the progname stuff to work the same way the rest of the configure X-Git-Tag: APACHE_2_0_ALPHA_3~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e2d0cc0b437a9d160437ed446a436fffeeeb94;p=thirdparty%2Fapache%2Fhttpd.git Fix the progname stuff to work the same way the rest of the configure scheme works. Submitted by: Sascha Schumann Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85050 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/Makefile.in b/Makefile.in index a1c03872a51..15e83bf4b72 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,7 +6,7 @@ VPATH = @srcdir@ SUBDIRS = ap lib main modules os $(REGEX_DIR) -PROGRAM_NAME = @progname@ +PROGRAM_NAME = $(progname) PROGRAM_SOURCES = modules.c buildmark.c PROGRAM_LDADD = $(EXTRA_LDFLAGS) $(PROGRAM_DEPENDENCIES) $(EXTRA_LIBS) PROGRAM_DEPENDENCIES = \ diff --git a/configure.in b/configure.in index ed071bb1dfc..2c3eb0476f4 100644 --- a/configure.in +++ b/configure.in @@ -143,6 +143,7 @@ EXTRA_LIBS="$EXTRA_LIBS $LIBS" EXTRA_LDFLAGS="$LDFLAGS" LIBS="" LDFLAGS="" +APACHE_SUBST(progname) APACHE_SUBST(EXTRA_CFLAGS) APACHE_SUBST(EXTRA_LDFLAGS) APACHE_SUBST(EXTRA_LIBS) @@ -162,6 +163,11 @@ if test "$apache_need_shared" = "yes"; then $SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh fi +AC_ARG_WITH(program-name, +[ --with-program-name=alternate executable name],[ + progname="$withval" ], [ + progname="httpd"] ) + APACHE_FAST_OUTPUT(Makefile ap/Makefile lib/Makefile main/Makefile modules/Makefile os/Makefile) APACHE_FAST_GENERATE @@ -170,11 +176,6 @@ dnl ## Build modules.c rm -f $srcdir/modules.c echo $MODLIST | $AWK -f $srcdir/helpers/build-modules-c.awk > $srcdir/modules.c -AC_ARG_WITH(program-name, -[ --with-program-name=alternate executable name],[ - progname="$withval" ], [ - progname="httpd"] ) - AC_OUTPUT_COMMANDS([ echo '/* Generated by configure */' > ${path_h}.new echo "#define HTTPD_ROOT \"$prefix\"" >> ${path_h}.new @@ -197,6 +198,6 @@ bindir=$bindir progname=$progname ]) -AC_OUTPUT($APACHE_OUTPUT_FILES Makefile) +AC_OUTPUT($APACHE_OUTPUT_FILES)