diff configure @ 2172:531bf1664348

patch by "Steven M. Schultz" <sms@2BSD.COM> for BSD/OS support of iconv
author pl
date Fri, 12 Oct 2001 07:56:54 +0000
parents 09b43b65d65a
children d64159386b90
line wrap: on
line diff
--- a/configure	Thu Oct 11 23:41:43 2001 +0000
+++ b/configure	Fri Oct 12 07:56:54 2001 +0000
@@ -937,7 +937,7 @@
 
 EOF
 _iconv=yes
-if test "$system_name" = "FreeBSD" ; then
+if test "$system_name" = "FreeBSD" || test "$system_name" = "BSD/OS"; then
 $_cc $_extraincdir $TMPC -o $TMPO $_extralibdir -lm -liconv > /dev/null 2>&1 || \
  { _iconv=no ; echo "iconv(3) function not detected!" ;}
 else
@@ -1999,8 +1999,10 @@
 CFLAGS="$CFLAGS -D_THREAD_SAFE"
 fi
 
-if test "$system_name" = "FreeBSD" && test "$_iconv" = "#define USE_ICONV" ; then
-_iconvlib="-liconv"
+if test "$system_name" = "FreeBSD" || test "$system_name" = "BSD/OS" ; then
+  if test "$_iconv" = "#define USE_ICONV" ; then
+    _iconvlib="-liconv"
+  fi
 fi