/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-02-07 15:28:23 UTC
  • Revision ID: edam@waxworlds.org-20100207152823-42k206h6gwy7vla4
- fixed .am files so the library gets built!

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