Fix creation of yaz++-config when srcdir != objdir.
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 29 Nov 2002 15:43:23 +0000 (15:43 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 29 Nov 2002 15:43:23 +0000 (15:43 +0000)
ChangeLog
configure.in

index 4e32713..ce23ba4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 New autoconf m4 macro in yazpp.m4.
 
+Fix creation of src/yaz++-config so that it works if srcdir != objdir.
+
 Fixes for yaz++-config for libtool archives.
 
 --- 0.5 2002/11/04 Second release
index a12e155..7e5e35f 100644 (file)
@@ -66,21 +66,16 @@ AC_SUBST(YAZPP_BUILD_ROOT)
 YAZPP_SRC_ROOT=`cd ${srcdir}; pwd`
 YAZPP_BUILD_ROOT=`pwd`
 
-if test -f ${srcdir}/src/yaz++-config.in; then
-        rm ${srcdir}/src/yaz++-config.in
-fi
-sed s%yaz_echo_source=yes%yaz_echo_source=no%g < ${srcdir}/yaz++-config.in >${srcdir}/src/yaz++-config.in
 AC_OUTPUT([
        Makefile
        src/Makefile
        include/Makefile
        include/yaz++/Makefile
        yaz++-config
-       src/yaz++-config
        zoom/Makefile
        lib/Makefile
        doc/Makefile
        doc/yaz++.xml
        doc/yazprint.dsl doc/yazphp.dsl doc/yazhtml.dsl
         doc/tkl.xsl
-],[chmod +x yaz++-config src/yaz++-config])
+],[sed s%yaz_echo_source=yes%yaz_echo_source=no%g < yaz++-config >src/yaz++-config && chmod +x yaz++-config src/yaz++-config])