diff options
Diffstat (limited to 'configure')
-rw-r--r-- | configure | 41 |
1 files changed, 8 insertions, 33 deletions
@@ -4502,39 +4502,14 @@ if test $ac_cv_have_optreset = yes; then EOF fi -echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6 -echo "configure:4507: checking whether the ext2 ioctls compile" >&5 -if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <<EOF -#line 4512 "configure" -#include "confdefs.h" -#include <linux/ext2_fs.h> -#include <sys/ioctl.h> -int main() { -ioctl (0, EXT2_IOC_SETVERSION, 0); -; return 0; } -EOF -if { (eval echo configure:4520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - e2fsprogs_cv_ioctl_ext2=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - e2fsprogs_cv_ioctl_ext2=no -fi -rm -f conftest* -fi - -echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6 -if test "$e2fsprogs_cv_ioctl_ext2" = yes; then - cat >> confdefs.h <<\EOF +case "$host_os" in +linux*) + cat >> confdefs.h <<\EOF #define HAVE_EXT2_IOCTLS 1 EOF -fi + ;; +esac case "$host_os" in linux* | gnu*) if test "$prefix" = NONE -a "$root_prefix" = NONE ; then @@ -4560,20 +4535,20 @@ if test "$root_prefix" = NONE ; then fi echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 -echo "configure:4564: checking whether linker accepts -static" >&5 +echo "configure:4539: checking whether linker accepts -static" >&5 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" cat > conftest.$ac_ext <<EOF -#line 4570 "configure" +#line 4545 "configure" #include "confdefs.h" #include <stdio.h> int main() { fflush(stdout); ; return 0; } EOF -if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_e2fsprogs_use_static=yes else |