--- configure.orig 2011-05-03 01:51:31.000000000 +0200 +++ configure 2017-02-04 08:08:06.671546000 +0100 @@ -641,6 +641,8 @@ CK_COMPILE_SOLARIS_TRUE CK_COMPILE_FREEBSD_FALSE CK_COMPILE_FREEBSD_TRUE +CK_COMPILE_BSDSUNIX_FALSE +CK_COMPILE_BSDSUNIX_TRUE CK_COMPILE_LINUX_FALSE CK_COMPILE_LINUX_TRUE KVM_LIBS @@ -5880,7 +5882,7 @@ lt_cv_sys_max_cmd_len=8192; ;; - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + netbsd* | bsdsunix* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` @@ -6310,6 +6312,20 @@ lt_cv_deplibs_check_method=pass_all ;; +bsdsunix*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + lt_cv_deplibs_check_method='file_magic (BSDSUniX)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in @@ -10095,7 +10111,7 @@ ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) + bsdsunix* | freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -11065,6 +11081,22 @@ shlibpath_var=LD_LIBRARY_PATH ;; +bsdsunix*) + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + objformat=elf + fi + version_type=bsdsunix-$objformat + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + need_version=no + need_lib_prefix=no + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd1*) dynamic_linker=no ;; @@ -14162,8 +14194,15 @@ CK_BACKEND="" KVM_LIBS="" case "$host" in - *-*-freebsd* | *-*-kfreebsd*-gnu) - CK_BACKEND="freebsd" + *-*-freebsd* | *-*-kfreebsd*-gnu | *-*-bsdsunix*) + case "$host" in + *-*-freebsd* | *-*-kfreebsd*-gnu) + CK_BACKEND="freebsd" + ;; + *-*-bsdsunix*) + CK_BACKEND="bsdsunix" + ;; + esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5 $as_echo_n "checking for kvm_openfiles in -lkvm... " >&6; } if ${ac_cv_lib_kvm_kvm_openfiles+:} false; then : @@ -14239,6 +14278,14 @@ CK_COMPILE_FREEBSD_FALSE= fi + if test x$CK_BACKEND = xbsdsunix; then + CK_COMPILE_BSDSUNIX_TRUE= + CK_COMPILE_BSDSUNIX_FALSE='#' +else + CK_COMPILE_BSDSUNIX_TRUE='#' + CK_COMPILE_BSDSUNIX_FALSE= +fi + if test x$CK_BACKEND = xsolaris; then CK_COMPILE_SOLARIS_TRUE= CK_COMPILE_SOLARIS_FALSE='#' @@ -14693,7 +14740,7 @@ # Files -ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile tools/linux/Makefile tools/freebsd/Makefile tools/solaris/Makefile data/Makefile doc/Makefile doc/dbus/ConsoleKit.xml doc/dbus/Makefile libck-connector/Makefile libck-connector/ck-connector.pc pam-ck-connector/Makefile" +ac_config_files="$ac_config_files Makefile src/Makefile tools/Makefile tools/linux/Makefile tools/freebsd/Makefile tools/bsdsunix/Makefile tools/solaris/Makefile data/Makefile doc/Makefile doc/dbus/ConsoleKit.xml doc/dbus/Makefile libck-connector/Makefile libck-connector/ck-connector.pc pam-ck-connector/Makefile" ac_config_headers="$ac_config_headers config.h" @@ -14844,6 +14891,10 @@ as_fn_error $? "conditional \"CK_COMPILE_FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${CK_COMPILE_BSDSUNIX_TRUE}" && test -z "${CK_COMPILE_BSDSUNIX_FALSE}"; then + as_fn_error $? "conditional \"CK_COMPILE_BSDSUNIX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${CK_COMPILE_SOLARIS_TRUE}" && test -z "${CK_COMPILE_SOLARIS_FALSE}"; then as_fn_error $? "conditional \"CK_COMPILE_SOLARIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -15758,6 +15809,7 @@ "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; "tools/linux/Makefile") CONFIG_FILES="$CONFIG_FILES tools/linux/Makefile" ;; "tools/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES tools/freebsd/Makefile" ;; + "tools/bsdsunix/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bsdsunix/Makefile" ;; "tools/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES tools/solaris/Makefile" ;; "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;