head	1.2;
access;
symbols
	RELEASE_6_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2006.11.05.10.29.23;	author rafan;	state dead;
branches;
next	1.1;

1.1
date	2006.05.23.01.13.40;	author clsung;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Remove chinese/xcin25. It is renamed to chinese/xcin to reflect its real
  portname.
@
text
@--- configure.orig	Tue Nov 27 09:21:17 2001
+++ configure	Sat Apr 22 01:24:08 2006
@@@@ -32,6 +32,8 @@@@
 ac_help="$ac_help
   --with-db-lib=PATH        set the library dir of Berkeley DB2/3."
 ac_help="$ac_help
+  --with-db-name=NAME       set the library name of Berkeley DB."
+ac_help="$ac_help
   --with-tabe-inc=PATH      set the include dir of libtabe."
 ac_help="$ac_help
   --with-tabe-lib=PATH      set the library dir of libtabe."
@@@@ -869,6 +871,15 @@@@
 fi
 
 
+# Check whether --with-db_name or --without-db_name was given.
+if test "${with_db_name+set}" = set; then
+  withval="$with_db_name"
+    test x$withval != x && with_db_name="$withval"
+else
+    with_db_name='db'
+fi;
+
+
 # Check whether --with-tabe_inc or --without-tabe_inc was given.
 if test "${with_tabe_inc+set}" = set; then
   withval="$with_tabe_inc"
@@@@ -7869,7 +7880,7 @@@@
 fi
 
 LIBS="$OLD_LIBS"
-for f in db db3; do
+for f in $with_db_name; do
     echo $ac_n "checking for db_create in -l$f""... $ac_c" 1>&6
 echo "configure:7875: checking for db_create in -l$f" >&5
 ac_lib_var=`echo $f'_'db_create | sed 'y%./+-%__p_%'`
@@@@ -7878,16 +7889,20 @@@@
 else
   ac_save_LIBS="$LIBS"
 LIBS="-l$f  $LIBS"
+__db_create="db_create"
+if [ "$f" = "db-4.2" ]; then
+  __db_create="db_create_4002"
+fi
 cat > conftest.$ac_ext <<EOF
 #line 7883 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
-char db_create();
+char $__db_create();
 
 int main() {
-db_create()
+$__db_create()
 ; return 0; }
 EOF
 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
@@@@ -7914,7 +7929,7 @@@@
     test $found = y && break
 done
 if test $found = n; then
-    for f in db db2; do
+    for f in $with_db_name; do
 	echo $ac_n "checking for db_open in -l$f""... $ac_c" 1>&6
 echo "configure:7920: checking for db_open in -l$f" >&5
 ac_lib_var=`echo $f'_'db_open | sed 'y%./+-%__p_%'`
@


1.1
log
@- chinese/xcin25 is updated to use USE_BDB, and supports db4+.
  A warning message is printed if user defines WITH_BDB_VER.
  The db version used for xcin25 and libtabe  MUST  match.
- USE_BDB exists in libtabe, but it may find the wrong version
  if one has more than one bdb version  installed. Thus, configure
  and two source files are patched to use the correct bdb version
  specified in WITH_BDB_VER.
- bump PORTREVISION to encourage updating

PR:		ports/96606
Submitted by:	Rong-En Fan <rafan_AT_infor dot org>
Approved by:	maintainer (Kuang-che Wu)
@
text
@@

