mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
build: use pkgconfig to determine libuuid's parameters
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
This commit is contained in:
parent
b1bce4d3b7
commit
fe2928a793
@ -47,10 +47,7 @@ AC_CHECK_HEADERS_ONCE([
|
||||
AC_PROG_CC
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([uuid], [uuid_generate],
|
||||
[AC_DEFINE([HAVE_LIBUUID], 1,
|
||||
[Define to 1 if you have the 'uuid' library (-luuid).])],
|
||||
[AC_MSG_ERROR([UUID library not found])])
|
||||
PKG_CHECK_MODULES([libuuid], [uuid])
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([fcntl.h mntent.h stdlib.h string.h \
|
||||
|
@ -1,6 +1,7 @@
|
||||
## Makefile.am
|
||||
|
||||
AM_CPPFLAGS = ${libuuid_CFLAGS}
|
||||
AM_CFLAGS = -Wall
|
||||
LDADD = -luuid
|
||||
bin_PROGRAMS = mkfs.f2fs
|
||||
mkfs_f2fs_SOURCES = f2fs_format.c f2fs_format.h
|
||||
mkfs_f2fs_LDADD = ${libuuid_LIBS}
|
||||
|
Loading…
Reference in New Issue
Block a user