freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] configure --with-odbc-nodm problem...
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] configure --with-odbc-nodm problem...
- Date: Thu, 15 May 2008 10:02:31 -0400
Enrico Coi wrote:
>
> ...when running
>
> ./configure --with-odbc-nodm=/home/spas/Desktop/SoiFonWorkshop/
> --prefix=/home/spas/Desktop/SoiFonWorkshop/build/ --with-tdsver=8.0
> --host=arm
>
> the program configures with no errors, until I receive a "configure:
> error: sql.h not found"... Now, as described in the user guide, I copied
> sql.h, sqlext.h, sqltypes.h in "/home/spas/Desktop/SoiFonWorkshop/"...
It can be a little confusing. --with-odbc-nodm points to the place not
where sql.h is, but where "include/sql.h" is. That is, it still expects
sql.h (etc.) to be in a directory named "include". :-/
My setup is like this:
$ cat .build_options
--config-cache
--with-tdsver=7.0
--with-libiconv-prefix=/usr/pkg
--enable-threadsafe=no
--disable-libiconv
--with-odbc-nodm=/usr/local
$ ls /usr/local/*/sql.h
/usr/local/include/sql.h
(I have a little script that reads my .build_options file, so I don't have
to remember them or keep them hard-coded in a script.)
Autoconf is a specialty unto itself, so it's not easy to discern this from
the sources. For future reference, the answer is to be found in
configure.ac:
$ grep nodm configure.ac
...
if test "$with_odbc_nodm"; then
if echo "$with_odbc_nodm" | grep -v '^/'; then
with_odbc_nodm="$PWD/$with_odbc_nodm"
ODBC_INC="$with_odbc_nodm/include"
and, more clearly, in config.log:
$ grep ODBC_INC build/config.log
ODBC_INC='-I/usr/local/include'
HTH.
--jkl
-
[freetds] configure --with-odbc-nodm problem...,
_ _, 05/15/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
James K. Lowden, 05/15/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
Sebastien FLAESCH, 05/15/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
James K. Lowden, 05/15/2008
- Re: [freetds] configure --with-odbc-nodm problem..., Sebastien FLAESCH, 05/15/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
James K. Lowden, 05/15/2008
- Re: [freetds] configure --with-odbc-nodm problem..., _ _, 05/16/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
James K. Lowden, 05/15/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
Sebastien FLAESCH, 05/15/2008
-
Re: [freetds] configure --with-odbc-nodm problem...,
James K. Lowden, 05/15/2008
Archive powered by MHonArc 2.6.24.