--- libgda-0.2.96/configure.in.lib64 2002-01-24 19:54:21.000000000 -0500 +++ libgda-0.2.96/configure.in 2002-07-22 18:17:28.000000000 -0400 @@ -162,6 +162,13 @@ dnl ****************************** dnl Checks for providers dnl ****************************** +dnl Test for lib64 architectures +dnl FIXME: should really check target +case $host_cpu in +x86_64* | sparc64*) lib="lib64";; +*) lib="lib";; +esac + dnl Test for ODBC AC_ARG_WITH(odbc, [ --with-odbc=<directory> use ODBC libraries in <directory>],[ @@ -175,14 +182,14 @@ odbcdir="" AC_MSG_CHECKING(for ODBC files) for d in $dir /usr /usr/local do - if test -f $d/lib/libodbc.so + if test -f $d/$lib/libodbc.so then AC_MSG_RESULT(found ODBC in $d) odbclib="-lodbc" odbcdir=$d break fi - if test -f $d/lib/libiodbc.so + if test -f $d/$lib/libiodbc.so then AC_MSG_RESULT(found iODBC in $d) odbclib="-liodbc" @@ -221,14 +228,14 @@ do else mysqldir_suffix= fi - if test -f $d/lib/mysql/libmysqlclient.a -o -f $d/lib/mysql/libmysqlclient.so + if test -f $d/$lib/mysql/libmysqlclient.a -o -f $d/$lib/mysql/libmysqlclient.so then AC_MSG_RESULT(found mysql in $d) mysqldir=$d mysqllibdir_suffix=/mysql break fi - if test -f $d/lib/libmysqlclient.a -o -f $d/lib/libmysqlclient.so + if test -f $d/$lib/libmysqlclient.a -o -f $d/$lib/libmysqlclient.so then AC_MSG_RESULT(found mysql in $d) mysqldir=$d @@ -265,7 +272,7 @@ AC_MSG_CHECKING(for Postgres files) postgresdir="" for d in $dir /usr /usr/local/postgres /opt/postgres /opt/packages/postgres /disk/postgres /usr/local/pgsql do - if test -f $d/lib/libpq.so + if test -f $d/$lib/libpq.so then AC_MSG_RESULT(found Postgres in $d) postgresdir=$d @@ -309,7 +316,7 @@ primebasedir="" AC_MSG_CHECKING(for PrimeBase SDK >= 4.0 Pre-final) for d in $dir /opt/primebase /usr/local/primebase do - if test -e ${d}/lib/libpbvm.so + if test -e ${d}/$lib/libpbvm.so then for i in sdk include do @@ -467,14 +474,14 @@ AC_MSG_CHECKING(for LDAP files) ldapdir="" for d in $dir /usr /usr/local/ldap /opt/ldap /opt/packages/ldap /usr/local/openldap /opt/openldap /opt/packages/openldap do - if test -f $d/lib/libldap.so + if test -f $d/$lib/libldap.so then AC_MSG_RESULT(found LDAP in $d) LDAP_LIBS="-lldap -llber" ldapdir=$d break fi - if test -f $d/lib/libopenldap.so + if test -f $d/$lib/libopenldap.so then AC_MSG_RESULT(found OpenLDAP in $d) LDAP_LIBS="-lopenldap -llber-openldap" @@ -515,7 +522,7 @@ fi AC_MSG_CHECKING(for ORACLE installation) for d in $dir $ORACLE_HOME /opt/oracle do - if test -f $d/lib/libclntsh.so + if test -f $d/$lib/libclntsh.so then AC_MSG_RESULT(found ORACLE in $d) oracledir=$d