/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-29 06:28:53 UTC
  • Revision ID: edam@waxworlds.org-20100729062853-4i2fec52m86mh724
- made basic_statement::step() protected, for use by query and command only
- moved basic_statement::operator<<() to command and query instead; one needs to accept sqlite::exec, the other doesn't
- added tests for query::operator<<()
- added code to invlaidate in-progress queries during any transaction rollbacks (currently segfaults in basic_statement::finalize())
- added new sqlite_error constructor that obtains a full error message
- implemented database::database_mutex_guard class
- swapped command's step mutex in favour of the database mutex

Show diffs side-by-side

added added

removed removed

701
701
PACKAGE_VERSION='0.1.0'
702
702
PACKAGE_STRING='sqlite3cc 0.1.0'
703
703
PACKAGE_BUGREPORT='edam@waxworlds.org'
704
 
PACKAGE_URL=''
 
704
PACKAGE_URL='http://www.waxworlds.org/edam/software/sqlite3cc'
705
705
 
706
706
ac_unique_file="src/database.cc"
707
707
# Factoring default headers for most tests.
818
818
INSTALL_DATA
819
819
INSTALL_SCRIPT
820
820
INSTALL_PROGRAM
 
821
LIBSQLITE3CC_INTERFACE
821
822
target_alias
822
823
host_alias
823
824
build_alias
1531
1532
it to find libraries and programs with nonstandard names/locations.
1532
1533
 
1533
1534
Report bugs to <edam@waxworlds.org>.
 
1535
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>.
1534
1536
_ACEOF
1535
1537
ac_status=$?
1536
1538
fi
2432
2434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2435
 
2434
2436
 
 
2437
LIBSQLITE3CC_INTERFACE=0:0:0
 
2438
 
2435
2439
ac_aux_dir=
2436
2440
for ac_dir in build-aux "$srcdir"/build-aux; do
2437
2441
  for ac_t in install-sh install.sh shtool; do
4573
4577
else
4574
4578
  lt_cv_nm_interface="BSD nm"
4575
4579
  echo "int some_variable = 0;" > conftest.$ac_ext
4576
 
  (eval echo "\"\$as_me:4576: $ac_compile\"" >&5)
 
4580
  (eval echo "\"\$as_me:4580: $ac_compile\"" >&5)
4577
4581
  (eval "$ac_compile" 2>conftest.err)
4578
4582
  cat conftest.err >&5
4579
 
  (eval echo "\"\$as_me:4579: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4583
  (eval echo "\"\$as_me:4583: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4580
4584
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4581
4585
  cat conftest.err >&5
4582
 
  (eval echo "\"\$as_me:4582: output\"" >&5)
 
4586
  (eval echo "\"\$as_me:4586: output\"" >&5)
4583
4587
  cat conftest.out >&5
4584
4588
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4585
4589
    lt_cv_nm_interface="MS dumpbin"
5785
5789
  ;;
5786
5790
*-*-irix6*)
5787
5791
  # Find out which ABI we are using.
5788
 
  echo '#line 5788 "configure"' > conftest.$ac_ext
 
5792
  echo '#line 5792 "configure"' > conftest.$ac_ext
5789
5793
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5790
5794
  (eval $ac_compile) 2>&5
5791
5795
  ac_status=$?
7315
7319
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7316
7320
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7317
7321
   -e 's:$: $lt_compiler_flag:'`
7318
 
   (eval echo "\"\$as_me:7318: $lt_compile\"" >&5)
 
7322
   (eval echo "\"\$as_me:7322: $lt_compile\"" >&5)
7319
7323
   (eval "$lt_compile" 2>conftest.err)
7320
7324
   ac_status=$?
7321
7325
   cat conftest.err >&5
7322
 
   echo "$as_me:7322: \$? = $ac_status" >&5
 
7326
   echo "$as_me:7326: \$? = $ac_status" >&5
7323
7327
   if (exit $ac_status) && test -s "$ac_outfile"; then
7324
7328
     # The compiler can only warn and ignore the option if not recognized
7325
7329
     # So say no if there are warnings other than the usual output.
7654
7658
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7655
7659
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7656
7660
   -e 's:$: $lt_compiler_flag:'`
7657
 
   (eval echo "\"\$as_me:7657: $lt_compile\"" >&5)
 
7661
   (eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
7658
7662
   (eval "$lt_compile" 2>conftest.err)
7659
7663
   ac_status=$?
7660
7664
   cat conftest.err >&5
7661
 
   echo "$as_me:7661: \$? = $ac_status" >&5
 
7665
   echo "$as_me:7665: \$? = $ac_status" >&5
7662
7666
   if (exit $ac_status) && test -s "$ac_outfile"; then
7663
7667
     # The compiler can only warn and ignore the option if not recognized
7664
7668
     # So say no if there are warnings other than the usual output.
7759
7763
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760
7764
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761
7765
   -e 's:$: $lt_compiler_flag:'`
7762
 
   (eval echo "\"\$as_me:7762: $lt_compile\"" >&5)
 
7766
   (eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
7763
7767
   (eval "$lt_compile" 2>out/conftest.err)
7764
7768
   ac_status=$?
7765
7769
   cat out/conftest.err >&5
7766
 
   echo "$as_me:7766: \$? = $ac_status" >&5
 
7770
   echo "$as_me:7770: \$? = $ac_status" >&5
7767
7771
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7768
7772
   then
7769
7773
     # The compiler can only warn and ignore the option if not recognized
7814
7818
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815
7819
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816
7820
   -e 's:$: $lt_compiler_flag:'`
7817
 
   (eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
 
7821
   (eval echo "\"\$as_me:7821: $lt_compile\"" >&5)
7818
7822
   (eval "$lt_compile" 2>out/conftest.err)
7819
7823
   ac_status=$?
7820
7824
   cat out/conftest.err >&5
7821
 
   echo "$as_me:7821: \$? = $ac_status" >&5
 
7825
   echo "$as_me:7825: \$? = $ac_status" >&5
7822
7826
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7823
7827
   then
7824
7828
     # The compiler can only warn and ignore the option if not recognized
10197
10201
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10198
10202
  lt_status=$lt_dlunknown
10199
10203
  cat > conftest.$ac_ext <<_LT_EOF
10200
 
#line 10200 "configure"
 
10204
#line 10204 "configure"
10201
10205
#include "confdefs.h"
10202
10206
 
10203
10207
#if HAVE_DLFCN_H
10293
10297
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10294
10298
  lt_status=$lt_dlunknown
10295
10299
  cat > conftest.$ac_ext <<_LT_EOF
10296
 
#line 10296 "configure"
 
10300
#line 10300 "configure"
10297
10301
#include "confdefs.h"
10298
10302
 
10299
10303
#if HAVE_DLFCN_H
13181
13185
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13182
13186
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183
13187
   -e 's:$: $lt_compiler_flag:'`
13184
 
   (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
 
13188
   (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13185
13189
   (eval "$lt_compile" 2>conftest.err)
13186
13190
   ac_status=$?
13187
13191
   cat conftest.err >&5
13188
 
   echo "$as_me:13188: \$? = $ac_status" >&5
 
13192
   echo "$as_me:13192: \$? = $ac_status" >&5
13189
13193
   if (exit $ac_status) && test -s "$ac_outfile"; then
13190
13194
     # The compiler can only warn and ignore the option if not recognized
13191
13195
     # So say no if there are warnings other than the usual output.
13280
13284
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13281
13285
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13282
13286
   -e 's:$: $lt_compiler_flag:'`
13283
 
   (eval echo "\"\$as_me:13283: $lt_compile\"" >&5)
 
13287
   (eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
13284
13288
   (eval "$lt_compile" 2>out/conftest.err)
13285
13289
   ac_status=$?
13286
13290
   cat out/conftest.err >&5
13287
 
   echo "$as_me:13287: \$? = $ac_status" >&5
 
13291
   echo "$as_me:13291: \$? = $ac_status" >&5
13288
13292
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13289
13293
   then
13290
13294
     # The compiler can only warn and ignore the option if not recognized
13332
13336
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13333
13337
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13334
13338
   -e 's:$: $lt_compiler_flag:'`
13335
 
   (eval echo "\"\$as_me:13335: $lt_compile\"" >&5)
 
13339
   (eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
13336
13340
   (eval "$lt_compile" 2>out/conftest.err)
13337
13341
   ac_status=$?
13338
13342
   cat out/conftest.err >&5
13339
 
   echo "$as_me:13339: \$? = $ac_status" >&5
 
13343
   echo "$as_me:13343: \$? = $ac_status" >&5
13340
13344
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13341
13345
   then
13342
13346
     # The compiler can only warn and ignore the option if not recognized
14283
14287
 
14284
14288
 
14285
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
 
14286
14420
 
14287
14421
# checks for header files.
14288
14422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14414
14548
 
14415
14549
# checks for library functions.
14416
14550
 
14417
 
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile"
 
14551
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
14418
14552
 
14419
14553
cat >confcache <<\_ACEOF
14420
14554
# This file is a shell script that caches the results of configure
15004
15138
Configuration commands:
15005
15139
$config_commands
15006
15140
 
15007
 
Report bugs to <edam@waxworlds.org>."
 
15141
Report bugs to <edam@waxworlds.org>.
 
15142
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>."
15008
15143
 
15009
15144
_ACEOF
15010
15145
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15486
15621
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15487
15622
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15488
15623
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
15624
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15489
15625
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15490
15626
 
15491
15627
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;