This commit was generated by cvs2svn to compensate for changes in r786,
[libnl.git] / configure.in
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..68aa586
--- /dev/null
@@ -0,0 +1,80 @@
+#
+# configure.in
+#
+#      This library is free software; you can redistribute it and/or
+#      modify it under the terms of the GNU Lesser General Public
+#      License as published by the Free Software Foundation version 2.1
+#      of the License.
+#
+# Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
+#
+
+AC_INIT(libnl, 1.0-pre6, tgraf@suug.ch)
+AC_CONFIG_HEADER(lib/defs.h)
+
+save_CFLAGS="${CFLAGS}"
+save_LDFLAGS="${LDFLAGS}"
+save_CPPFLAGS="${CPPFLAGS}"
+
+AC_PROG_CC
+AC_PROG_INSTALL
+
+AC_C_CONST
+AC_C_INLINE
+
+#####################################################################
+##
+## libm check
+##
+#####################################################################
+M="No "
+AC_CHECK_LIB(m, pow,
+[
+  LIBM="-lm"
+  M="Yes"
+],[
+    echo
+    echo "*** Error: libm required ***"
+    echo
+    exit
+])
+
+#####################################################################
+##
+## verbose error strings
+##
+#####################################################################
+AC_ARG_ENABLE(verbose-errors,
+[  --enable-verbose-errors enable verbose errors (debugging)],[
+       if test x$enableval = xyes; then
+               AC_DEFINE_UNQUOTED(VERBOSE_ERRORS,"1",[verbose errors])
+       fi
+])
+
+#####################################################################
+##
+## compile decisions
+##
+#####################################################################
+COMPILE_LIBNL="Yes "
+LIBNL_LIB="$LIBM"
+
+AC_SUBST(LIBNL_LIB)
+
+AC_OUTPUT([Makefile.opts libnl-1.pc])
+
+#####################################################################
+##
+## status report
+##
+#####################################################################
+echo "
+----------------------------------------------------------------------
+SUMMARY:
+
+Included in Compilation:
+  libnl:   $COMPILE_LIBNL $LIBNL_LIB
+
+Dependencies:
+bmon:
+  libm             $M       (required)"