$NetBSD: patch-ab,v 1.2 2007/01/12 22:49:24 joerg Exp $ --- configure.orig 2007-01-06 05:29:02.000000000 +0000 +++ configure @@ -1501,6 +1501,7 @@ case $host_os in darwin*) template=darwin ;; dgux*) template=dgux ;; freebsd*) template=freebsd ;; + dragonfly*) template=dragonfly ;; hpux*) template=hpux ;; irix*) template=irix ;; linux*|gnu*|k*bsd*-gnu) @@ -4753,9 +4754,7 @@ echo "${ECHO_T}$perl_useshrplib" >&6 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6 -pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` -pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` -perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"` +perl_embed_ldflags=`$PERL -MExtUtils::Embed -e ldopts` echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5 echo "${ECHO_T}$perl_embed_ldflags" >&6 fi @@ -21604,17 +21603,12 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gettext (); +#include + int main () { -gettext (); +gettext (""); ; return 0; } @@ -21659,17 +21653,12 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gettext (); +#include + int main () { -gettext (); +gettext (""); ; return 0; }