]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Sync up minor differences between configure scripts (uuid, libtool checks), add in...
authorNathan Scott <nathans@sgi.com>
Wed, 14 May 2003 06:56:59 +0000 (06:56 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 14 May 2003 06:56:59 +0000 (06:56 +0000)
aclocal.m4
configure.in
m4/package_globals.m4
m4/package_uuiddev.m4

index 8ad06506e8f528803cb0509bb5242f9e78a4a54c..6361f42fe77411d545ed60a018f12cc50af34d00 100644 (file)
@@ -1,19 +1,21 @@
-dnl aclocal.m4 generated automatically by aclocal 1.4
+# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
 
-dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
+# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
 
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-dnl PARTICULAR PURPOSE.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
 
 # 
 # Generic macro, sets up all of the global packaging variables.
 # The following environment variables may be set to override defaults:
 #   DEBUG OPTIMIZER MALLOCLIB PLATFORM DISTRIBUTION INSTALL_USER INSTALL_GROUP
+#   BUILD_VERSION
 #
 AC_DEFUN([AC_PACKAGE_GLOBALS],
   [ pkg_name="$1"
@@ -23,6 +25,7 @@ AC_DEFUN([AC_PACKAGE_GLOBALS],
     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
     AC_SUBST(pkg_version)
     pkg_release=$PKG_BUILD
+    test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
     AC_SUBST(pkg_release)
 
     DEBUG=${DEBUG:-'-DDEBUG'}          dnl  -DNDEBUG
@@ -88,7 +91,7 @@ AC_DEFUN([AC_PACKAGE_UTILITIES],
     AC_PACKAGE_NEED_UTILITY($1, "$make", make, [GNU make])
 
     if test -z "$LIBTOOL"; then
-        AC_PATH_PROG(LIBTOOL, libtool,,/usr/bin)
+       AC_PATH_PROG(LIBTOOL, libtool,,/usr/bin:/usr/local/bin)
     fi
     libtool=$LIBTOOL
     AC_SUBST(libtool)
@@ -171,21 +174,22 @@ AC_DEFUN([AC_PACKAGE_UTILITIES],
   ])
 
 AC_DEFUN([AC_PACKAGE_NEED_UUID_UUID_H],
-  [ AC_CHECK_HEADERS([uuid/uuid.h])
-    if test "$ac_cv_header_uuid_uuid_h" != yes; then
+  [ AC_CHECK_HEADERS(uuid/uuid.h,, [
+       AC_CHECK_HEADER(uuid.h,, [
        echo
        echo 'FATAL ERROR: could not find a valid UUID header.'
        echo 'Install the Universally Unique Identifiers development package.'
-       exit 1
+       exit 1])
     fi
   ])
 
-AC_DEFUN([AC_PACKAGE_NEED_UUIDPARSE_LIBUUID],
-  [ AC_CHECK_LIB(uuid, uuid_parse,, [
+AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE_LIBUUID],
+  [ AC_CHECK_LIB(uuid, uuid_compare,, [
+       AC_CHECK_FUNCS(uuid_compare,, [
        echo
        echo 'FATAL ERROR: could not find a valid UUID library.'
        echo 'Install the Universally Unique Identifiers library package.'
-       exit 1
+       exit 1])
     ])
     libuuid="/usr/lib/libuuid.a"
     AC_SUBST(libuuid)
index 2ec3239fe5c2d27c40dc119e3139f46673509ad6..226714002ce8583d7e03ddae9e77ea7b2ed1ec42 100644 (file)
@@ -29,7 +29,7 @@ AC_PACKAGE_GLOBALS(xfsprogs)
 AC_PACKAGE_UTILITIES(xfsprogs)
 
 AC_PACKAGE_NEED_UUID_UUID_H
-AC_PACKAGE_NEED_UUIDPARSE_LIBUUID
+AC_PACKAGE_NEED_UUIDCOMPARE_LIBUUID
 AC_ARG_ENABLE(shared-uuid,
 [ --enable-shared-uuid=[yes/no]        Link shared libuuid [default=no].],
        libuuid="/usr/lib/libuuid.a"
index c83dc2dfaa5f829c0ece85a7f7fe8e0a4c27a704..25b387d32bde76c16d1cd2b00c47b28f2c954748 100644 (file)
@@ -2,6 +2,7 @@
 # Generic macro, sets up all of the global packaging variables.
 # The following environment variables may be set to override defaults:
 #   DEBUG OPTIMIZER MALLOCLIB PLATFORM DISTRIBUTION INSTALL_USER INSTALL_GROUP
+#   BUILD_VERSION
 #
 AC_DEFUN([AC_PACKAGE_GLOBALS],
   [ pkg_name="$1"
@@ -11,6 +12,7 @@ AC_DEFUN([AC_PACKAGE_GLOBALS],
     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
     AC_SUBST(pkg_version)
     pkg_release=$PKG_BUILD
+    test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
     AC_SUBST(pkg_release)
 
     DEBUG=${DEBUG:-'-DDEBUG'}          dnl  -DNDEBUG
index 30bda09ca47dca9ff3d204ff16aec84de1fcf49f..45d3113309ef98a1d1ea52f789eb0af15d779205 100644 (file)
@@ -8,9 +8,9 @@ AC_DEFUN([AC_PACKAGE_NEED_UUID_UUID_H],
     fi
   ])
 
-AC_DEFUN([AC_PACKAGE_NEED_UUIDPARSE_LIBUUID],
-  [ AC_CHECK_LIB(uuid, uuid_parse,, [
-       AC_CHECK_FUNCS(uuid_create,, [
+AC_DEFUN([AC_PACKAGE_NEED_UUIDCOMPARE_LIBUUID],
+  [ AC_CHECK_LIB(uuid, uuid_compare,, [
+       AC_CHECK_FUNCS(uuid_compare,, [
        echo
        echo 'FATAL ERROR: could not find a valid UUID library.'
        echo 'Install the Universally Unique Identifiers library package.'