$NetBSD: patch-at,v 1.5 2015/12/26 11:58:19 joerg Exp $ Support shared libraries. Don't capture value of HOME. --- configure.orig 2014-09-08 04:56:03.000000000 +0000 +++ configure @@ -1514,7 +1514,7 @@ Installation directories: By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +for instance \`--prefix=\\\$HOME'. For better control, use the options below. @@ -11481,7 +11481,7 @@ $as_echo "yes" >&6; } EXT_FOR_SHARED_LIB=so EXT_FOR_LINK_WITH_PIC_OBJECTS=o ;; - i*86-*-freebsd*) + i*86-*-freebsd*|*-netbsd*) # From Cornelis van der Laan { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } @@ -13143,7 +13143,7 @@ if test $mercury_cv_have_readline = no; else TERMCAP_LIBRARY="$mercury_cv_termcap_lib" - READLINE_LIBRARIES="-lreadline $TERMCAP_LIBRARY" + READLINE_LIBRARIES="-L${READLINE_PREFIX}/lib ${LINKER_RPATH_FLAG}${READLINE_PREFIX}/lib -lreadline $TERMCAP_LIBRARY" fi