Ticket #1645 (closed defect: fixed)

Opened 1 year ago

Last modified 7 months ago

configure does not check for SQLite header and library

Reported by: mloskot Assigned to: mloskot
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

05/18/07 10:17:21 changed by mloskot

  • version changed from unspecified to svn-trunk.

05/18/07 12:36:41 changed by warmerdam

  • priority changed from normal to low.
  • owner changed from warmerdam to mloskot.
  • severity changed from normal to minor.
  • cc set to warmerdam.
  • milestone set to 1.5.0.

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.

12/09/07 12:44:50 changed by mloskot

  • status changed from new to assigned.

12/09/07 12:44:54 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

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