diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-02 21:07:52 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-03-02 21:07:52 +0000 |
commit | 2277da3178d75fc3259527c529f5c342f9b4f584 (patch) | |
tree | 4022d4e8fde18e8c78b0a4a1568f900976d4341a /libgo/configure | |
parent | 882390bba75f5b189f4ae80f1d5b395476f83238 (diff) | |
download | gcc-2277da3178d75fc3259527c529f5c342f9b4f584.tar.gz |
libgo: Try to fix use of <ustat.h> for Solaris and older GNU/Linux.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure')
-rwxr-xr-x | libgo/configure | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/libgo/configure b/libgo/configure index 6a4fb91e9e5..128629fdb1e 100755 --- a/libgo/configure +++ b/libgo/configure @@ -14508,7 +14508,7 @@ no) ;; esac -for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h ustat.h utime.h linux/reboot.h +for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/reboot.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -14542,6 +14542,36 @@ fi done +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5 +$as_echo_n "checking whether <ustat.h> can be used... " >&6; } +if test "${libgo_cv_c_ustat_h+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <sys/types.h> +#ifdef HAVE_LINUX_FILTER_H +#include <linux/filter.h> +#endif +#include <ustat.h> + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + libgo_cv_c_ustat_h=yes +else + libgo_cv_c_ustat_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5 +$as_echo "$libgo_cv_c_ustat_h" >&6; } +if test $libgo_cv_c_ustat_h = yes; then + +$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h + +fi + if test "$ac_cv_header_sys_mman_h" = yes; then HAVE_SYS_MMAN_H_TRUE= HAVE_SYS_MMAN_H_FALSE='#' |