Index: configure
--- configure.orig
+++ configure
@@ -2996,6 +2996,7 @@ dragonfly*) template=netbsd ;;
    mingw*) template=win32 ;;
   netbsd*) template=netbsd ;;
  openbsd*) template=openbsd ;;
+  secbsd*) template=secbsd ;;
  solaris*) template=solaris ;;
 esac
 
@@ -12510,7 +12511,7 @@ if ac_fn_c_try_link "$LINENO"; then :
       # recognize dependent libraries; assume curses is needed if we didn't
       # find any dependency.
       case $host_os in
-        netbsd* | openbsd*)
+        netbsd* | openbsd* | secbsd*)
           if test x"$pgac_lib" = x"" ; then
             pgac_lib=" -lcurses"
           fi ;;
@@ -16449,7 +16450,7 @@ fi
 
 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
 # (i.e., allow '-' as a flag character), so use our version on those platforms.
-if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
+if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "secbsd" -o "$PORTNAME" = "solaris"; then
   case " $LIBOBJS " in
   *" getopt.$ac_objext "* ) ;;
   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
@@ -19227,7 +19228,7 @@ if test x"$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dyl
 fi
 
 
-elif test "$PORTNAME" = "openbsd"; then
+elif test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "secbsd"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS" >&5
 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS... " >&6; }
 if ${pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic+:} false; then :