/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to configure

  • Committer: edam
  • Date: 2010-07-23 09:17:03 UTC
  • Revision ID: edam@waxworlds.org-20100723091703-3siqjj6eeux9hupz
- added NEWS
- added library checks to configure.ac
- added query::iterators
- remove dependency that rows have on querys (since querys have to be dependent on rows for boost::iterator_facade to work)
- rows now have the handle to the sqlite3 statement and know a count of their row number
- added convenience function tht can be used to detect presence of sqlite3cc in other packages
- updated test-main
- renamed all subdir.mk files to emake.mk

Show diffs side-by-side

added added

removed removed

14287
14287
 
14288
14288
 
14289
14289
# checks for libraries.
 
14290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-mt" >&5
 
14291
$as_echo_n "checking for main in -lboost_filesystem-mt... " >&6; }
 
14292
if test "${ac_cv_lib_boost_filesystem_mt_main+set}" = set; then :
 
14293
  $as_echo_n "(cached) " >&6
 
14294
else
 
14295
  ac_check_lib_save_LIBS=$LIBS
 
14296
LIBS="-lboost_filesystem-mt  $LIBS"
 
14297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14298
/* end confdefs.h.  */
 
14299
 
 
14300
 
 
14301
int
 
14302
main ()
 
14303
{
 
14304
return main ();
 
14305
  ;
 
14306
  return 0;
 
14307
}
 
14308
_ACEOF
 
14309
if ac_fn_c_try_link "$LINENO"; then :
 
14310
  ac_cv_lib_boost_filesystem_mt_main=yes
 
14311
else
 
14312
  ac_cv_lib_boost_filesystem_mt_main=no
 
14313
fi
 
14314
rm -f core conftest.err conftest.$ac_objext \
 
14315
    conftest$ac_exeext conftest.$ac_ext
 
14316
LIBS=$ac_check_lib_save_LIBS
 
14317
fi
 
14318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_mt_main" >&5
 
14319
$as_echo "$ac_cv_lib_boost_filesystem_mt_main" >&6; }
 
14320
if test "x$ac_cv_lib_boost_filesystem_mt_main" = x""yes; then :
 
14321
  cat >>confdefs.h <<_ACEOF
 
14322
#define HAVE_LIBBOOST_FILESYSTEM_MT 1
 
14323
_ACEOF
 
14324
 
 
14325
  LIBS="-lboost_filesystem-mt $LIBS"
 
14326
 
 
14327
else
 
14328
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&5
 
14329
$as_echo "$as_me: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&2;}
 
14330
fi
 
14331
 
 
14332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-mt" >&5
 
14333
$as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
 
14334
if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then :
 
14335
  $as_echo_n "(cached) " >&6
 
14336
else
 
14337
  ac_check_lib_save_LIBS=$LIBS
 
14338
LIBS="-lboost_thread-mt  $LIBS"
 
14339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14340
/* end confdefs.h.  */
 
14341
 
 
14342
 
 
14343
int
 
14344
main ()
 
14345
{
 
14346
return main ();
 
14347
  ;
 
14348
  return 0;
 
14349
}
 
14350
_ACEOF
 
14351
if ac_fn_c_try_link "$LINENO"; then :
 
14352
  ac_cv_lib_boost_thread_mt_main=yes
 
14353
else
 
14354
  ac_cv_lib_boost_thread_mt_main=no
 
14355
fi
 
14356
rm -f core conftest.err conftest.$ac_objext \
 
14357
    conftest$ac_exeext conftest.$ac_ext
 
14358
LIBS=$ac_check_lib_save_LIBS
 
14359
fi
 
14360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_mt_main" >&5
 
14361
$as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
 
14362
if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then :
 
14363
  cat >>confdefs.h <<_ACEOF
 
14364
#define HAVE_LIBBOOST_THREAD_MT 1
 
14365
_ACEOF
 
14366
 
 
14367
  LIBS="-lboost_thread-mt $LIBS"
 
14368
 
 
14369
else
 
14370
  as_fn_error "Unable to find Boost Thread library" "$LINENO" 5
 
14371
fi
 
14372
 
 
14373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
 
14374
$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
 
14375
if test "${ac_cv_lib_sqlite3_sqlite3_initialize+set}" = set; then :
 
14376
  $as_echo_n "(cached) " >&6
 
14377
else
 
14378
  ac_check_lib_save_LIBS=$LIBS
 
14379
LIBS="-lsqlite3  $LIBS"
 
14380
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14381
/* end confdefs.h.  */
 
14382
 
 
14383
/* Override any GCC internal prototype to avoid an error.
 
14384
   Use char because int might match the return type of a GCC
 
14385
   builtin and then its argument prototype would still apply.  */
 
14386
#ifdef __cplusplus
 
14387
extern "C"
 
14388
#endif
 
14389
char sqlite3_initialize ();
 
14390
int
 
14391
main ()
 
14392
{
 
14393
return sqlite3_initialize ();
 
14394
  ;
 
14395
  return 0;
 
14396
}
 
14397
_ACEOF
 
14398
if ac_fn_c_try_link "$LINENO"; then :
 
14399
  ac_cv_lib_sqlite3_sqlite3_initialize=yes
 
14400
else
 
14401
  ac_cv_lib_sqlite3_sqlite3_initialize=no
 
14402
fi
 
14403
rm -f core conftest.err conftest.$ac_objext \
 
14404
    conftest$ac_exeext conftest.$ac_ext
 
14405
LIBS=$ac_check_lib_save_LIBS
 
14406
fi
 
14407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
 
14408
$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
 
14409
if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = x""yes; then :
 
14410
  cat >>confdefs.h <<_ACEOF
 
14411
#define HAVE_LIBSQLITE3 1
 
14412
_ACEOF
 
14413
 
 
14414
  LIBS="-lsqlite3 $LIBS"
 
14415
 
 
14416
else
 
14417
  as_fn_error "Unable to find SQLite3 library" "$LINENO" 5
 
14418
fi
 
14419
 
14290
14420
 
14291
14421
# checks for header files.
14292
14422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5