Opened 17 years ago

Closed 17 years ago

#1645 closed defect (fixed)

configure does not check for SQLite header and library

Reported by: Mateusz Łoskot Owned by: Mateusz Łoskot
Priority: low Milestone: 1.5.0
Component: OGR_SF Version: svn-trunk
Severity: minor Keywords: SQLite
Cc: warmerdam

Description

The ./configure script does not really check for presence of SQLite header and library files. If there is no SQLite version installed in the system, the configuration summary is incorrect:

./configure --with-sqlite=yes
...
checking for curl-config... no
checking Checking for SQLite... enabled
checking Checking for DWGdirect... disabled
...
  DODS support:              no
  SQLite support:            yes
  DWGdirect support          no
...

Next, compilation fails with (expected) error message:

make[3]: Entering directory `/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/ogr/ogrsf_frmts/sqlite'
g++ -Wall -fPIC -O2   -I.. -I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/port 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/gcore 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/alg 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/ogr 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/ogr/ogrsf_frmts  -DOGR_ENABLED 
-I/home/mloskot/dev/gdal/_svn/branches/1.4/gdal/port  -c -o ../o/ogrsqlitedatasource.o 
ogrsqlitedatasource.cpp
In file included from ogrsqlitedatasource.cpp:30:
ogr_sqlite.h:35:21: error: sqlite3.h: No such file or directory
...

There was very similar Ticket #1508 but related to detecting Python files.

Change History (4)

comment:1 by Mateusz Łoskot, 17 years ago

Version: unspecifiedsvn-trunk

comment:2 by warmerdam, 17 years ago

Cc: warmerdam added
Milestone: 1.5.0
Owner: changed from warmerdam to Mateusz Łoskot
Priority: normallow
Severity: normalminor

Mateusz,

This is also true of some other configuration options where it was not convenient at the time to do proper checking. Since you raise this issue, I'll let you fix it.

comment:3 by Mateusz Łoskot, 17 years ago

Status: newassigned

comment:4 by Mateusz Łoskot, 17 years ago

Resolution: fixed
Status: assignedclosed

This ticket is duplicated as #2067 which has been already fixed.

Note: See TracTickets for help on using tickets.