--- Configure.orig 2020-12-27 02:27:04.000000000 +1100 +++ Configure 2021-07-07 21:11:45.219988000 +1000 @@ -3463,6 +3463,8 @@ bsd386) osname=bsd386 osvers=`$uname -r` ;; + bsdsunix) osname=bsdsunix + osvers="$3" ;; cygwin*) osname=cygwin osvers="$3" ;; @@ -3585,6 +3587,7 @@ ;; $2) case "$osname" in *isc*) ;; + *bsdsunix*) ;; *freebsd*) ;; svr*) : svr4.x or possibly later @@ -3876,7 +3879,10 @@ . ./posthint.sh : who configured the system -cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1` +case "$cf_time" in +"") + cf_time=`LC_ALL=C; LANGUAGE=C; export LC_ALL; export LANGUAGE; $date 2>&1` ;; +esac case "$cf_by" in "") cf_by=`(logname) 2>/dev/null` @@ -5061,7 +5067,7 @@ : Now check and see which directories actually exist, avoiding duplicates for xxx in $dlist do - if $test -d $xxx; then + if $test -d $xxx || [ $xxx = $prefix/lib ]; then case " $libpth " in *" $xxx "*) ;; *) libpth="$libpth $xxx";; @@ -8822,7 +8828,7 @@ solaris) xxx="-R $shrpdir" ;; - freebsd|minix|mirbsd|netbsd|openbsd|interix|dragonfly|bitrig) + bsdsunix|freebsd|minix|mirbsd|netbsd|openbsd|interix|dragonfly|bitrig) xxx="-Wl,-R$shrpdir" ;; bsdos|linux|irix*|dec_osf|gnu*|haiku) @@ -9605,8 +9611,7 @@ : determine where add-on public executable scripts go case "$sitescript" in -'') dflt=$siteprefix/script - $test -d $dflt || dflt=$sitebin ;; +'') dflt=$sitebin ;; *) dflt="$sitescript" ;; esac fn=d~+ @@ -16397,7 +16402,7 @@ *"$undef"*) h_msg=false;; esac case "$osname" in -freebsd) +bsdsunix|freebsd) case "`ipcs 2>&1`" in "SVID messages"*"not configured"*) echo "Your $osname does not have the msg*(2) configured." >&4 @@ -17492,7 +17497,7 @@ *"$undef"*) h_sem=false;; esac case "$osname" in -freebsd) +bsdsunix|freebsd) case "`ipcs 2>&1`" in "SVID messages"*"not configured"*) echo "Your $osname does not have the sem*(2) configured." >&4 @@ -18356,7 +18361,7 @@ *"$undef"*) h_shm=false;; esac case "$osname" in -freebsd) +bsdsunix|freebsd) case "`ipcs 2>&1`" in "SVID shared memory"*"not configured"*) echo "Your $osname does not have the shm*(2) configured." >&4