Skip to content

Commit f77e1ff

Browse files
committed
Only set LIBUUID flags on success
1 parent 790bf15 commit f77e1ff

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

configure

+12-4
Original file line numberDiff line numberDiff line change
@@ -10612,8 +10612,6 @@ fi
1061210612
echo "$LIBUUID_PKG_ERRORS" >&5
1061310613

1061410614

10615-
LIBUUID_CFLAGS=${LIBUUID_CFLAGS:-""}
10616-
LIBUUID_LIBS=${LIBUUID_LIBS:-"-luuid"}
1061710615
for ac_header in uuid/uuid.h
1061810616
do :
1061910617
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
@@ -10731,6 +10729,12 @@ LDFLAGS=$save_LDFLAGS
1073110729
LIBS=$save_LIBS
1073210730

1073310731

10732+
if test "x$have_uuid" = xyes; then :
10733+
10734+
LIBUUID_CFLAGS=${LIBUUID_CFLAGS:-""}
10735+
LIBUUID_LIBS=${LIBUUID_LIBS:-"-luuid"}
10736+
10737+
fi
1073410738

1073510739
fi
1073610740

@@ -10742,8 +10746,6 @@ elif test $pkg_failed = untried; then
1074210746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1074310747
$as_echo "no" >&6; }
1074410748

10745-
LIBUUID_CFLAGS=${LIBUUID_CFLAGS:-""}
10746-
LIBUUID_LIBS=${LIBUUID_LIBS:-"-luuid"}
1074710749
for ac_header in uuid/uuid.h
1074810750
do :
1074910751
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
@@ -10861,6 +10863,12 @@ LDFLAGS=$save_LDFLAGS
1086110863
LIBS=$save_LIBS
1086210864

1086310865

10866+
if test "x$have_uuid" = xyes; then :
10867+
10868+
LIBUUID_CFLAGS=${LIBUUID_CFLAGS:-""}
10869+
LIBUUID_LIBS=${LIBUUID_LIBS:-"-luuid"}
10870+
10871+
fi
1086410872

1086510873
fi
1086610874

configure.ac

+4-2
Original file line numberDiff line numberDiff line change
@@ -2961,8 +2961,6 @@ AS_VAR_IF([have_uuid], [missing], [
29612961
AC_DEFINE([HAVE_UUID_H], [1])
29622962
AC_DEFINE([HAVE_UUID_GENERATE_TIME_SAFE], [1])
29632963
], [
2964-
LIBUUID_CFLAGS=${LIBUUID_CFLAGS:-""}
2965-
LIBUUID_LIBS=${LIBUUID_LIBS:-"-luuid"}
29662964
AC_CHECK_HEADERS([uuid/uuid.h], [
29672965
WITH_SAVE_ENV(
29682966
[AC_CHECK_LIB([uuid], [uuid_generate_time], [have_uuid=yes])
@@ -2973,6 +2971,10 @@ AS_VAR_IF([have_uuid], [missing], [
29732971
AC_DEFINE([HAVE_UUID_GENERATE_TIME_SAFE], [1])
29742972
])
29752973
])
2974+
AS_VAR_IF([have_uuid], [yes], [
2975+
LIBUUID_CFLAGS=${LIBUUID_CFLAGS:-""}
2976+
LIBUUID_LIBS=${LIBUUID_LIBS:-"-luuid"}
2977+
])
29762978
])
29772979
]
29782980
)

0 commit comments

Comments
 (0)