<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Alan when you have enough time, may you take a look at it?<BR>
And if ok merge it in trunk?<BR>
<BR>
regards.<BR>
<BR>
Le mardi 14 décembre 2010 à 23:30 -1000, <A HREF="mailto:alexandre.chapellon@mana.pf">alexandre.chapellon@mana.pf</A> a écrit :
<BLOCKQUOTE TYPE=CITE>
<PRE>
It works here, is indeed smarter and lighter.
Hope it's ok.

--- /tmp/configure.in.orig      2010-12-14 23:24:40.019101002 -1000
+++ /tmp/configure.in   2010-12-14 23:18:25.875101003 -1000
@@ -86,32 +86,37 @@
                if test "x$oracle_lib_dir" != "x" ; then
                        ORACLE_LIBDIR_SWITCH="-L${oracle_lib_dir} "
                fi
-               LIBS="$old_LIBS $ORACLE_LIBDIR_SWITCH -lclntsh -lnnz10"
-               AC_TRY_LINK([#include <oci.h>
-       
-                               static OCIEnv           *p_env;
-                               static OCIError         *p_err;
-                               static OCISvcCtx        *p_svc;
-                               static OCIStmt          *p_sql;
-                               static OCIDefine        *p_dfn    = (OCIDefine *) 0;
-                               static OCIBind          *p_bnd    = (OCIBind *) 0;
-                       ],
-                       [
-                                 int             p_bvi;
-                                 char            p_sli[20];
-                                 int             rc;
-                                 char            errbuf[100];
-                                 int             errcode;
-                               
-                                 rc = OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0,  /* Initialize OCI */
-                                         (dvoid * (*)(dvoid *, size_t)) 0,
-                                         (dvoid * (*)(dvoid *, dvoid *, size_t))0,
-                                         (void (*)(dvoid *, dvoid *)) 0 );
-
-                       ],
-                       ORACLE_LIBS="$ORACLE_LIBDIR_SWITCH -lclntsh -lnnz10",
-                       ORACLE_LIBS=
-               )
+               for oracle_version in 10 11 9 ""; do
+                       LIBS="$old_LIBS $ORACLE_LIBDIR_SWITCH -lclntsh -lnnz${oracle_version}"
+                       AC_TRY_LINK([#include <oci.h>
+               
+                                       static OCIEnv           *p_env;
+                                       static OCIError         *p_err;
+                                       static OCISvcCtx        *p_svc;
+                                       static OCIStmt          *p_sql;
+                                       static OCIDefine        *p_dfn    = (OCIDefine *) 0;
+                                       static OCIBind          *p_bnd    = (OCIBind *) 0;
+                               ],
+                               [
+                                         int             p_bvi;
+                                         char            p_sli[20];
+                                         int             rc;
+                                         char            errbuf[100];
+                                         int             errcode;
+                                       
+                                         rc = OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0,  /* Initialize OCI */
+                                                         (dvoid * (*)(dvoid *, size_t)) 0,
+                                                         (dvoid * (*)(dvoid *, dvoid *, size_t))0,
+                                                         (void (*)(dvoid *, dvoid *)) 0 );
+
+                               ],
+                               ORACLE_LIBS="$ORACLE_LIBDIR_SWITCH -lclntsh -lnnz${oracle_version}",
+                               ORACLE_LIBS=
+                       )
+                       if test "x$ORACLE_LIBS" != "x"; then
+                               break
+                       fi
+               done
 
                LIBS="$old_LIBS"
                CFLAGS="$old_CFLAGS"
@@ -129,7 +134,7 @@
 
                if test "x$ORACLE_LIBS" = "x"; then
                        AC_MSG_WARN([oracle libraries not found.  Use --with-oracle-lib-dir=<path>.])
-                       fail="$fail libclntsh libnnz10"
+                       fail="$fail libclntsh libnnz${oracle_version}"
                else
                        sql_oracle_ldflags="${sql_oracle_ldflags} $ORACLE_LIBS"
                        AC_MSG_RESULT(yes)

---- Message original----
>Date: Wed, 15 Dec 2010 07:54:38 +0100
>From: <A HREF="mailto:freeradius-users-bounces+alexandre.chapellon=mana.pf@lists.freeradius.org">freeradius-users-bounces+alexandre.chapellon=mana.pf@lists.freeradius.org</A> (on behalf of Alan DeKok <<A HREF="mailto:aland@deployingradius.com">aland@deployingradius.com</A>>)
>Subject: Re: Freeradius/Oracle compilation  
>To: FreeRadius users mailing list <<A HREF="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</A>>
>
>Alexandre Chapellon wrote:
>> Hello I didn't have even a comment about this.
>> Is there something stupid in the proposed patch?
>
>  I've been busy.  Off of the top of my head:
>
>- requiring a new option to configure isn't friendly.
>
>- the whole *point* of configure is to have the computer "just figure it
>out"
>
>- leave the old code there, it works for many people
>
>- add *new* code, which is run only if the old code doesn't find
>  the libraries
>
>- don't force the user to choose an oracle version.
>
>- you can write a "for" loop which loops over the different versions,
>and stops when the check is successful
>-
>List info/subscribe/unsubscribe? See <A HREF="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</A>
-
List info/subscribe/unsubscribe? See <A HREF="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<A HREF="https://www.twitter.com/manainternet">Follow us on: twitter https://www.twitter.com/manainternet</A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>