From: Adam Dickmeiss Date: Wed, 15 Sep 2010 08:52:41 +0000 (+0200) Subject: Simplify yazpp-config a bit X-Git-Tag: v1.2.4~13 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d186092a74d767a2e1be5e9db685b41ce8f76936;p=yazpp-moved-to-github.git Simplify yazpp-config a bit src_root, build_root values can be taken from automake value. --- diff --git a/configure.ac b/configure.ac index 3255fad..43bb3f8 100644 --- a/configure.ac +++ b/configure.ac @@ -22,11 +22,6 @@ AC_CHECK_HEADERS([unistd.h sys/stat.h sys/time.h sys/types.h fcntl.h]) AC_ARG_ENABLE(zoom,[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes]) AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes") -AC_SUBST(YAZPP_SRC_ROOT) -AC_SUBST(YAZPP_BUILD_ROOT) -YAZPP_SRC_ROOT=`cd ${srcdir}; pwd` -YAZPP_BUILD_ROOT=`pwd` - AC_OUTPUT([ Doxyfile Makefile diff --git a/yazpp-config.in b/yazpp-config.in index a76b6ec..4379120 100644 --- a/yazpp-config.in +++ b/yazpp-config.in @@ -1,22 +1,21 @@ #!/bin/sh -yazppprefix=@prefix@ -yaz_echo_cflags=no -yaz_echo_libs=no -yaz_echo_help=no -yaz_echo_tabs=no -yaz_echo_source=yes -yaz_echo_lalibs=no -yazpp_src_root=@YAZPP_SRC_ROOT@ -yazpp_build_root=@YAZPP_BUILD_ROOT@ - +prefix=@prefix@ +echo_cflags=no +echo_libs=no +echo_help=no +echo_tabs=no +echo_source=yes +echo_lalibs=no +src_root=@abs_top_srcdir@ +build_root=@abs_top_builddir@ yazlibs="@YAZLIB@ @LIBS@" yazlalibs="@YAZLALIB@ @LIBS@" -YAZPPVERSION=@VERSION@ +VERSION=@VERSION@ usage() { cat <&2 fi -if test "$yaz_echo_cflags" = "yes"; then +if test "$echo_cflags" = "yes"; then echo $YAZPPINC fi -if test "$yaz_echo_libs" = "yes"; then +if test "$echo_libs" = "yes"; then echo $YAZPPLIB fi -if test "$yaz_echo_lalibs" = "yes"; then +if test "$echo_lalibs" = "yes"; then echo $YAZPPLALIB fi