Re: configure --with-odbc-nodm problem...

Sebastien FLAESCH <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Organization Four J's Development Tools
Message-ID <[email protected]>
Then the help text describing this configure option is wrong:

./configure --help

   --with-odbc-nodm=DIR    build odbc without driver manager (headers in DIR)
                                                             ^^^^^^^^^^^^^^^^

Seb

James K. Lowden wrote:
> 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 mailing list
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.