[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3 of 5] autoconf: run libuuid test under Linux only
# HG changeset patch # User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx> # Date 1330004063 -3600 # Node ID 8bd684735341cd4e41aa6ea1047556a88b84f625 # Parent 21734a9d28823bdda72423282582ff973289c758 autoconf: run libuuid test under Linux only libuuid is only required to compile Xen tools under Linux. Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx> diff -r 21734a9d2882 -r 8bd684735341 tools/configure --- a/tools/configure Thu Feb 23 14:29:43 2012 +0100 +++ b/tools/configure Thu Feb 23 14:34:23 2012 +0100 @@ -6840,7 +6840,9 @@ if test "x$ac_cv_lib_rt_clock_gettime" = fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5 +if test "x$host_os" == "xlinux-gnu"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5 $as_echo_n "checking for uuid_clear in -luuid... " >&6; } if test "${ac_cv_lib_uuid_uuid_clear+set}" = set; then : $as_echo_n "(cached) " >&6 @@ -6887,6 +6889,8 @@ else as_fn_error $? "Could not find libuuid" "$LINENO" 5 fi + +fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yajl_alloc in -lyajl" >&5 $as_echo_n "checking for yajl_alloc in -lyajl... " >&6; } if test "${ac_cv_lib_yajl_yajl_alloc+set}" = set; then : diff -r 21734a9d2882 -r 8bd684735341 tools/configure.ac --- a/tools/configure.ac Thu Feb 23 14:29:43 2012 +0100 +++ b/tools/configure.ac Thu Feb 23 14:34:23 2012 +0100 @@ -120,8 +120,10 @@ AC_SUBST(libgcrypt) AC_CHECK_LIB([pthread], [pthread_create], [] , [AC_MSG_ERROR([Could not find libpthread])]) AC_CHECK_LIB([rt], [clock_gettime]) -AC_CHECK_LIB([uuid], [uuid_clear], [], - [AC_MSG_ERROR([Could not find libuuid])]) +AS_IF([test "x$host_os" == "xlinux-gnu"], [ + AC_CHECK_LIB([uuid], [uuid_clear], [], + [AC_MSG_ERROR([Could not find libuuid])]) +]) AC_CHECK_LIB([yajl], [yajl_alloc], [], [AC_MSG_ERROR([Could not find yajl])]) AC_CHECK_LIB([z], [deflateCopy], [], [AC_MSG_ERROR([Could not find zlib])]) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |