136 |
[ --without-parted don't try to use GNU Parted libraries], |
[ --without-parted don't try to use GNU Parted libraries], |
137 |
, with_parted=yes) |
, with_parted=yes) |
138 |
|
|
|
# Check if we have the necessary stuff to build against GNU Parted libraries. |
|
|
parted=$with_parted |
|
|
save_LIBS= |
|
|
LIBS= |
|
|
test $parted = no || { |
|
|
AC_CHECK_HEADER(parted/parted.h, |
|
|
[AC_DEFINE(HAVE_PARTED_PARTED_H)], |
|
|
parted=no) |
|
|
} |
|
|
test $parted = no || { |
|
|
AC_CHECK_LIB(uuid, uuid_generate, , parted=no) |
|
|
} |
|
|
test $parted = no || { |
|
|
AC_CHECK_LIB(parted, ped_device_read, , parted=no) |
|
|
} |
|
|
PARTED_LIBS=$LIBS |
|
|
LIBS=$save_LIBS |
|
|
AC_SUBST(PARTED_LIBS) |
|
|
|
|
139 |
AC_ARG_ENABLE(boot-store-types, |
AC_ARG_ENABLE(boot-store-types, |
140 |
[ --enable-boot-store-types=TYPES... |
[ --enable-boot-store-types=TYPES... |
141 |
list of store types included in statically |
list of store types included in statically |
142 |
linked filesystems used for booting])dnl |
linked filesystems used for booting])dnl |
143 |
if test -z "$enable_boot_store_types"; then |
if test -z "$enable_boot_store_types"; then |
144 |
boot_store_types='device gunzip bunzip2' |
boot_store_types='device remap gunzip bunzip2' |
145 |
test $parted = no || boot_store_types="$boot_store_types part" |
|
146 |
|
# Check for Parted's static store module. |
147 |
|
if test "x$with_parted" != xno; then |
148 |
|
save_LDFLAGS="$LDFLAGS" |
149 |
|
LDFLAGS="$LDFLAGS -static" |
150 |
|
AC_CHECK_LIB(store_part, store_part_open, [dnl |
151 |
|
boot_store_types="$boot_store_types part"], , -luuid -lstore) |
152 |
|
LDFLAGS="$save_LDFLAGS" |
153 |
|
fi |
154 |
|
elif test "x$enable_boot_store_types" = xno; then |
155 |
|
AC_MSG_WARN([you probably wanted --disable-static-progs]) |
156 |
|
else |
157 |
|
boot_store_types="$enable_boot_store_types" |
158 |
fi |
fi |
159 |
AC_SUBST(boot_store_types)dnl |
AC_SUBST(boot_store_types)dnl |
160 |
|
AC_MSG_CHECKING(boot store types) |
161 |
|
AC_MSG_RESULT($boot_store_types) |
162 |
|
|
163 |
if test -f ./$ac_unique_file; then |
if test -f ./$ac_unique_file; then |
164 |
# Configuring in source directory; don't create any Makefiles. |
# Configuring in source directory; don't create any Makefiles. |