qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r527998 - in /incubator/qpid/trunk/qpid/cpp: ./ Makefile.am configure.ac docs/api/ docs/api/Makefile.am docs/api/doxygen_mk.sh m4/qpid.m4 qpid-config.in
Date Thu, 12 Apr 2007 16:04:08 GMT
Author: aconway
Date: Thu Apr 12 09:04:01 2007
New Revision: 527998

URL: http://svn.apache.org/viewvc?view=rev&rev=527998
Log:

* cpp/qpid-config.in, Makefile.am, configure.ac: added qpid-config script.
* cpp/m4/qpid.m4: added qpid.m4 script.
* cpp/docs/api/doxygen_mk.sh: removed, unused.
* cpp/docs/api/Makefile.am: fixed dependency typo.

Added:
    incubator/qpid/trunk/qpid/cpp/m4/qpid.m4
    incubator/qpid/trunk/qpid/cpp/qpid-config.in   (with props)
Removed:
    incubator/qpid/trunk/qpid/cpp/docs/api/doxygen_mk.sh
Modified:
    incubator/qpid/trunk/qpid/cpp/   (props changed)
    incubator/qpid/trunk/qpid/cpp/Makefile.am
    incubator/qpid/trunk/qpid/cpp/configure.ac
    incubator/qpid/trunk/qpid/cpp/docs/api/   (props changed)
    incubator/qpid/trunk/qpid/cpp/docs/api/Makefile.am

Propchange: incubator/qpid/trunk/qpid/cpp/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Apr 12 09:04:01 2007
@@ -12,3 +12,4 @@
 config.cache
 qpidc.spec
 qpidc-*
+qpid-config

Modified: incubator/qpid/trunk/qpid/cpp/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/Makefile.am?view=diff&rev=527998&r1=527997&r2=527998
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/Makefile.am Thu Apr 12 09:04:01 2007
@@ -1,6 +1,8 @@
 AUTOMAKE_OPTIONS = 1.9.2 foreign
 ACLOCAL_AMFLAGS = -I m4
 
+bin_SCRIPTS = qpid-config
+
 SPEC=$(PACKAGE).spec
 
 EXTRA_DIST = \

Modified: incubator/qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/configure.ac?view=diff&rev=527998&r1=527997&r2=527998
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/configure.ac (original)
+++ incubator/qpid/trunk/qpid/cpp/configure.ac Thu Apr 12 09:04:01 2007
@@ -133,6 +133,7 @@
 AM_CONDITIONAL([HAS_RPMLINT], [test -n "$RPMLINT"])
 	
 AC_CONFIG_FILES([
+  qpid-config	
   Makefile
   src/Makefile
   src/tests/Makefile
@@ -141,5 +142,4 @@
   docs/api/user.doxygen
   docs/api/developer.doxygen
   ])
-
 AC_OUTPUT

Propchange: incubator/qpid/trunk/qpid/cpp/docs/api/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu Apr 12 09:04:01 2007
@@ -6,3 +6,4 @@
 
 developer.doxygen
 user.doxygen
+html.timestamp

Modified: incubator/qpid/trunk/qpid/cpp/docs/api/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/docs/api/Makefile.am?view=diff&rev=527998&r1=527997&r2=527998
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/docs/api/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/docs/api/Makefile.am Thu Apr 12 09:04:01 2007
@@ -3,21 +3,15 @@
 # Generate dependency files so its rebuilt only when needed. 
 #
 
-EXTRA_DIST = html user.doxygen developer.doxygen
-
-dist-hook: html
+# TODO aconway 2007-04-12: html should have a
+# dependency on source/header files.
 
-src=$(top_srcdir)/src
+EXTRA_DIST = html user.doxygen developer.doxygen
 
-headers: $(src)/*.h $(src)/*/*.h $(src)/*/*/*.h
-sources: $(src)/*.cpp $(src)/*/*.cpp $(src)/*/*/*.cpp
+html: html.timestamp
 
-html: headers user.doxygen
+html.timestamp:
 	doxygen user.doxygen
-	touch $@
-
-html-dev: headers sources developer.doxygen
-	doxygen developer.doxygen
 	touch $@
 
 clean-local:

Added: incubator/qpid/trunk/qpid/cpp/m4/qpid.m4
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/m4/qpid.m4?view=auto&rev=527998
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/m4/qpid.m4 (added)
+++ incubator/qpid/trunk/qpid/cpp/m4/qpid.m4 Thu Apr 12 09:04:01 2007
@@ -0,0 +1,89 @@
+dnl
+dnl AM_PATH_QPID(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+dnl
+AC_DEFUN([AM_PATH_QPID],
+[
+
+AC_ARG_WITH(qpid-prefix,[  --with-qpid-prefix=PFX   Prefix where Qpid is installed (optional)],
+            qpid_config_prefix="$withval", qpid_config_prefix="")
+AC_ARG_WITH(qpid-exec-prefix,[  --with-qpid-exec-prefix=PFX  Exec prefix where Qpid is installed
(optional)],
+            qpid_config_exec_prefix="$withval", qpid_config_exec_prefix="")
+
+  if test x$qpid_config_exec_prefix != x ; then
+     qpid_config_args="$qpid_config_args --exec-prefix=$qpid_config_exec_prefix"
+     if test x${QPID_CONFIG+set} != xset ; then
+        QPID_CONFIG=$qpid_config_exec_prefix/bin/qpid-config
+     fi
+  fi
+  if test x$qpid_config_prefix != x ; then
+     qpid_config_args="$qpid_config_args --prefix=$qpid_config_prefix"
+     if test x${QPID_CONFIG+set} != xset ; then
+        QPID_CONFIG=$qpid_config_prefix/bin/qpid-config
+     fi
+  fi
+
+  AC_PATH_PROG(QPID_CONFIG, qpid-config, no)
+  qpid_version_min=$1
+
+  AC_MSG_CHECKING(for Qpid - version >= $qpid_version_min)
+  no_qpid=""
+  if test "$QPID_CONFIG" = "no" ; then
+    AC_MSG_RESULT(no)
+    no_qpid=yes
+  else
+    QPID_CFLAGS=`$QPID_CONFIG --cflags`
+    QPID_LIBS=`$QPID_CONFIG --libs`
+    qpid_version=`$QPID_CONFIG --version`
+
+    qpid_major_version=`echo $qpid_version | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+    qpid_minor_version=`echo $qpid_version | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+    qpid_micro_version=`echo $qpid_version | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+
+    qpid_major_min=`echo $qpid_version_min | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+    if test "x${qpid_major_min}" = "x" ; then
+       qpid_major_min=0
+    fi
+
+    qpid_minor_min=`echo $qpid_version_min | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+    if test "x${qpid_minor_min}" = "x" ; then
+       qpid_minor_min=0
+    fi
+
+    qpid_micro_min=`echo $qpid_version_min | \
+           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+    if test "x${qpid_micro_min}" = "x" ; then
+       qpid_micro_min=0
+    fi
+
+    qpid_version_proper=`expr \
+        $qpid_major_version \> $qpid_major_min \| \
+        $qpid_major_version \= $qpid_major_min \& \
+        $qpid_minor_version \> $qpid_minor_min \| \
+        $qpid_major_version \= $qpid_major_min \& \
+        $qpid_minor_version \= $qpid_minor_min \& \
+        $qpid_micro_version \>= $qpid_micro_min `
+
+    if test "$qpid_version_proper" = "1" ; then
+      AC_MSG_RESULT([$qpid_major_version.$qpid_minor_version.$qpid_micro_version])
+    else
+      AC_MSG_RESULT(no)
+      no_qpid=yes
+    fi
+  fi
+
+  if test "x$no_qpid" = x ; then
+     ifelse([$2], , :, [$2])
+  else
+     QPID_CFLAGS=""
+     QPID_LIBS=""
+     ifelse([$3], , :, [$3])
+  fi
+
+  AC_SUBST(QPID_CFLAGS)
+  AC_SUBST(QPID_LIBS)
+])

Added: incubator/qpid/trunk/qpid/cpp/qpid-config.in
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/qpid-config.in?view=auto&rev=527998
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/qpid-config.in (added)
+++ incubator/qpid/trunk/qpid/cpp/qpid-config.in Thu Apr 12 09:04:01 2007
@@ -0,0 +1,98 @@
+#!/bin/sh
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+exec_prefix_set=no
+includedir=@includedir@
+
+usage()
+{
+    cat <<EOF
+Usage: qpid-config [OPTION] ...
+
+Generic options
+  --version	output Qpid version information.
+  --help	display this help and exit.
+
+Compilation support options
+  --cflags	print pre-processor and compiler flags
+  --libs	print library linking information
+
+Install directories Qpid was configured to
+  --prefix[=DIR]      
+  --exec-prefix[=DIR]
+
+EOF
+	exit $1
+}
+
+if test $# -eq 0; then
+	usage 1 1>&2
+fi
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --prefix=*)
+      prefix=$optarg
+      if test $exec_prefix_set = no ; then
+        exec_prefix=$optarg
+      fi
+      ;;
+    --prefix)
+      echo_prefix=yes
+      ;;
+    --exec-prefix=*)
+      exec_prefix=$optarg
+      exec_prefix_set=yes
+      ;;
+    --exec-prefix)
+      echo_exec_prefix=yes
+      ;;
+    --version)
+      echo @QPID_VERSION@
+      ;;
+    --help)
+      usage 0
+      ;;
+    --cflags)
+      echo_cflags=yes
+      ;;
+    --libs)
+      echo_libs=yes
+      ;;
+    *)
+      usage 1 1>&2
+      ;;
+  esac
+  shift
+done
+
+if test "$echo_prefix" = "yes"; then
+	echo $prefix
+fi
+
+if test "$echo_exec_prefix" = "yes"; then
+	echo $exec_prefix
+fi
+
+if test "$echo_cflags" = "yes"; then
+      if test "$includedir" != "/usr/include" ; then
+            echo -I$includedir
+      fi
+fi
+
+if test "$echo_libs" = "yes"; then
+      if test @libdir@ != /usr/lib ; then
+            my_linker_flags="-L@libdir@"
+      fi
+      echo ${my_linker_flags} -lqpidcommon
+fi      
+
+
+
+

Propchange: incubator/qpid/trunk/qpid/cpp/qpid-config.in
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message