$NetBSD: patch-ba,v 1.4 2013/10/27 20:31:21 joerg Exp $ --- configure.orig 2009-01-21 02:44:10.000000000 +0000 +++ configure @@ -5057,7 +5057,12 @@ fi done ;; - -[lLR]*) + -R*) + ac_arg="-Wl,$ac_arg" + shift + set X $ac_arg "$@" + ;; + -[lLR]*|-Wl*) ac_exists=false for ac_i in $ac_cv_f77_libs; do if test x"$ac_arg" = x"$ac_i"; then @@ -7515,6 +7515,8 @@ case "$host" in mips*-sgi-irix4*) BAR="irix4" ;; *-linux*) BAR="linux" ;; *-freebsd*) BAR="fbsd" ;; + *-netbsd*) BAR="fbsd" ;; + *-dragonfly*) BAR="fbsd" ;; ia64-*-*) BAR="ia64" ;; *-ibm-aix*) BAR="aix" ;; i386-*-solaris2*) BAR="solarisx86" ;;