[openib-commits] r1723 - gen2/trunk/src/userspace/management/diags/net/ibroute

halr at openib.org
Wed Feb 2 11:59:04 PST 2005


Author: halr
Date: 2005-02-02 11:59:02 -0800 (Wed, 02 Feb 2005)
New Revision: 1723

Added:
   gen2/trunk/src/userspace/management/diags/net/ibroute/Makefile.am
   gen2/trunk/src/userspace/management/diags/net/ibroute/autogen.sh
   gen2/trunk/src/userspace/management/diags/net/ibroute/config.h.in
   gen2/trunk/src/userspace/management/diags/net/ibroute/config/
   gen2/trunk/src/userspace/management/diags/net/ibroute/configure.in
Log:
Autotools changes for ibroute


Added: gen2/trunk/src/userspace/management/diags/net/ibroute/Makefile.am
===================================================================
--- gen2/trunk/src/userspace/management/diags/net/ibroute/Makefile.am   2005-02-02 19:57:56 UTC (rev 1722)
+++ gen2/trunk/src/userspace/management/diags/net/ibroute/Makefile.am   2005-02-02 19:59:02 UTC (rev 1723)
@@ -0,0 +1,18 @@
+
+bindir = ${exec_prefix}/ib/bin
+libdir = ${exec_prefix}/ib/lib
+
+INCLUDES = -I$(srcdir)/../../../libibcommon/include/infiniband \
+          -I$(srcdir)/../../../libibumad/include/infiniband \
+          -I$(srcdir)/../../../libibmad/include/infiniband
+
+bin_PROGRAMS = src/ibroute
+src_ibroute_SOURCES = src/ibroute.c
+src_ibroute_CFLAGS = -Wall
+src_ibroute_LDADD = $(libdir)/libibcommon.la \
+                   $(libdir)/libibumad.la \
+                   $(libdir)/libibmad.la
+src_ibroute_LDFLAGS = -Wl,--rpath -Wl,$(libdir)
+
+EXTRA_DIST =
+

Added: gen2/trunk/src/userspace/management/diags/net/ibroute/autogen.sh
===================================================================
--- gen2/trunk/src/userspace/management/diags/net/ibroute/autogen.sh    2005-02-02 19:57:56 UTC (rev 1722)
+++ gen2/trunk/src/userspace/management/diags/net/ibroute/autogen.sh    2005-02-02 19:59:02 UTC (rev 1723)
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -x
+aclocal -I config
+libtoolize --force --copy
+autoheader
+automake --foreign --add-missing --copy
+autoconf


Property changes on: gen2/trunk/src/userspace/management/diags/net/ibroute/autogen.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: gen2/trunk/src/userspace/management/diags/net/ibroute/config.h.in
===================================================================
--- gen2/trunk/src/userspace/management/diags/net/ibroute/config.h.in   2005-02-02 19:57:56 UTC (rev 1722)
+++ gen2/trunk/src/userspace/management/diags/net/ibroute/config.h.in   2005-02-02 19:59:02 UTC (rev 1723)
@@ -0,0 +1,82 @@
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
+#undef HAVE_DOPRNT
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `ibcommon' library (-libcommon). */
+#undef HAVE_LIBIBCOMMON
+
+/* Define to 1 if you have the `ibmad' library (-libmad). */
+#undef HAVE_LIBIBMAD
+
+/* Define to 1 if you have the `ibumad' library (-libumad). */
+#undef HAVE_LIBIBUMAD
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_NETINET_IN_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strrchr' function. */
+#undef HAVE_STRRCHR
+
+/* Define to 1 if you have the `strtoul' function. */
+#undef HAVE_STRTOUL
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the  header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the `vprintf' function. */
+#undef HAVE_VPRINTF
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const

Added: gen2/trunk/src/userspace/management/diags/net/ibroute/configure.in
===================================================================
--- gen2/trunk/src/userspace/management/diags/net/ibroute/configure.in  2005-02-02 19:57:56 UTC (rev 1722)
+++ gen2/trunk/src/userspace/management/diags/net/ibroute/configure.in  2005-02-02 19:59:02 UTC (rev 1723)
@@ -0,0 +1,55 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.57)
+AC_INIT([src/ibroute.c])
+#AC_INIT(ibroute, 0.9.0, openib-general at openib.org)
+#AC_CONFIG_SRCDIR([src/ibroute.c])
+AC_CONFIG_AUX_DIR(config)
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE(ibroute, 0.9.0)
+
+dnl Checks for programs
+AC_PROG_CC
+AC_PROG_LIBTOOL
+
+dnl Checks for libraries
+LDFLAGS="$LDFLAGS -L/usr/local/ib/lib"
+AC_CHECK_LIB(ibcommon, sys_read_string, [],
+       AC_MSG_ERROR([sys_read_string() not found. ibroute requires libibcommon.]))
+AC_CHECK_LIB(ibumad, umad_init, [],
+       AC_MSG_ERROR([umad_init() not found. ibroute requires libibumad.]))
+AC_CHECK_LIB(ibmad, mad_dump_int, [],
+       AC_MSG_ERROR([mad_dump_int() not found. ibroute requires libibmad.]))
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h unistd.h])
+AC_CHECK_HEADER(infiniband/common.h, [],
+       AC_MSG_ERROR([ not found. ibroute requires libibcommon.])
+)
+AC_CHECK_HEADER(infiniband/umad.h, [],
+       AC_MSG_ERROR([ not found. ibroute requires libibumad.])
+)
+AC_CHECK_HEADER(infiniband/mad.h, [],
+       AC_MSG_ERROR([ not found. ibroute requires libibmad.])
+)
+
+dnl Checks for library functions
+AC_FUNC_ERROR_AT_LINE
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([strrchr strtoul])
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,
+    if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
+        ac_cv_version_script=yes
+    else
+        ac_cv_version_script=no
+    fi)
+
+AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT



More information about the openib-commits mailing list