2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for sqlite3cc 0.1.0.
3
# Generated by GNU Autoconf 2.65 for sqlite3cc 0.1.0.
5
5
# Report bugs to <edam@waxworlds.org>.
7
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11
13
# This configure script is free software; the Free Software Foundation
12
14
# gives unlimited permission to copy, distribute and modify it.
2352
2355
if test -r "$cache_file"; then
2353
# Some versions of bash will fail to source /dev/null (special
2354
# files actually), so we avoid doing that.
2355
if test -f "$cache_file"; then
2356
# Some versions of bash will fail to source /dev/null (special files
2357
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2358
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2356
2359
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357
2360
$as_echo "$as_me: loading cache $cache_file" >&6;}
2358
2361
case $cache_file in
3421
3424
... rest of stderr output deleted ...
3422
3425
10q' conftest.err >conftest.er1
3423
3426
cat conftest.er1 >&5
3424
rm -f conftest.er1 conftest.err
3428
rm -f conftest.er1 conftest.err
3426
3429
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427
3430
test $ac_status = 0; }
3430
3433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431
3434
/* end confdefs.h. */
3436
FILE *f = fopen ("conftest.out", "w");
3437
return ferror (f) || fclose (f) != 0;
3443
3444
ac_clean_files_save=$ac_clean_files
3444
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3445
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3445
3446
# Try to create an executable without -o first, disregard a.out.
3446
3447
# It will help us diagnose broken compilers, and finding out an intuition
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449
$as_echo_n "checking for C compiler default output file name... " >&6; }
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3450
$as_echo_n "checking whether the C compiler works... " >&6; }
3450
3451
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452
3453
# The possible output files:
3519
3520
{ as_fn_set_status 77
3520
3521
as_fn_error "C compiler cannot create executables
3521
3522
See \`config.log' for more details." "$LINENO" 5; }; }
3524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525
$as_echo "yes" >&6; }
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528
$as_echo_n "checking for C compiler default output file name... " >&6; }
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530
$as_echo "$ac_file" >&6; }
3523
3531
ac_exeext=$ac_cv_exeext
3525
# Check that the compiler produces executables we can run. If not, either
3526
# the compiler is broken, or we cross compile.
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3528
$as_echo_n "checking whether the C compiler works... " >&6; }
3529
# If not cross compiling, check that we can run a simple program.
3530
if test "$cross_compiling" != yes; then
3531
if { ac_try='./$ac_file'
3532
{ { case "(($ac_try" in
3533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534
*) ac_try_echo=$ac_try;;
3536
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537
$as_echo "$ac_try_echo"; } >&5
3538
(eval "$ac_try") 2>&5
3540
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541
test $ac_status = 0; }; }; then
3544
if test "$cross_compiling" = maybe; then
3547
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549
as_fn_error "cannot run C compiled programs.
3550
If you meant to cross compile, use \`--host'.
3551
See \`config.log' for more details." "$LINENO" 5; }
3555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556
$as_echo "yes" >&6; }
3558
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3533
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3559
3534
ac_clean_files=$ac_clean_files_save
3560
# Check that the compiler produces executables we can run. If not, either
3561
# the compiler is broken, or we cross compile.
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3563
$as_echo_n "checking whether we are cross compiling... " >&6; }
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565
$as_echo "$cross_compiling" >&6; }
3567
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568
3536
$as_echo_n "checking for suffix of executables... " >&6; }
3569
3537
if { { ac_try="$ac_link"
3596
3564
as_fn_error "cannot compute suffix of executables: cannot compile and link
3597
3565
See \`config.log' for more details." "$LINENO" 5; }
3599
rm -f conftest$ac_cv_exeext
3567
rm -f conftest conftest$ac_cv_exeext
3600
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601
3569
$as_echo "$ac_cv_exeext" >&6; }
3603
3571
rm -f conftest.$ac_ext
3604
3572
EXEEXT=$ac_cv_exeext
3605
3573
ac_exeext=$EXEEXT
3574
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575
/* end confdefs.h. */
3580
FILE *f = fopen ("conftest.out", "w");
3581
return ferror (f) || fclose (f) != 0;
3587
ac_clean_files="$ac_clean_files conftest.out"
3588
# Check that the compiler produces executables we can run. If not, either
3589
# the compiler is broken, or we cross compile.
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591
$as_echo_n "checking whether we are cross compiling... " >&6; }
3592
if test "$cross_compiling" != yes; then
3593
{ { ac_try="$ac_link"
3595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596
*) ac_try_echo=$ac_try;;
3598
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599
$as_echo "$ac_try_echo"; } >&5
3600
(eval "$ac_link") 2>&5
3602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603
test $ac_status = 0; }
3604
if { ac_try='./conftest$ac_cv_exeext'
3605
{ { case "(($ac_try" in
3606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607
*) ac_try_echo=$ac_try;;
3609
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610
$as_echo "$ac_try_echo"; } >&5
3611
(eval "$ac_try") 2>&5
3613
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614
test $ac_status = 0; }; }; then
3617
if test "$cross_compiling" = maybe; then
3620
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622
as_fn_error "cannot run C compiled programs.
3623
If you meant to cross compile, use \`--host'.
3624
See \`config.log' for more details." "$LINENO" 5; }
3628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629
$as_echo "$cross_compiling" >&6; }
3631
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632
ac_clean_files=$ac_clean_files_save
3606
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3607
3634
$as_echo_n "checking for suffix of object files... " >&6; }
3608
3635
if test "${ac_cv_objext+set}" = set; then :
4578
4605
lt_cv_nm_interface="BSD nm"
4579
4606
echo "int some_variable = 0;" > conftest.$ac_ext
4580
(eval echo "\"\$as_me:4580: $ac_compile\"" >&5)
4607
(eval echo "\"\$as_me:4607: $ac_compile\"" >&5)
4581
4608
(eval "$ac_compile" 2>conftest.err)
4582
4609
cat conftest.err >&5
4583
(eval echo "\"\$as_me:4583: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4610
(eval echo "\"\$as_me:4610: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4584
4611
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4585
4612
cat conftest.err >&5
4586
(eval echo "\"\$as_me:4586: output\"" >&5)
4613
(eval echo "\"\$as_me:4613: output\"" >&5)
4587
4614
cat conftest.out >&5
4588
4615
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4589
4616
lt_cv_nm_interface="MS dumpbin"
7319
7346
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7320
7347
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7321
7348
-e 's:$: $lt_compiler_flag:'`
7322
(eval echo "\"\$as_me:7322: $lt_compile\"" >&5)
7349
(eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
7323
7350
(eval "$lt_compile" 2>conftest.err)
7325
7352
cat conftest.err >&5
7326
echo "$as_me:7326: \$? = $ac_status" >&5
7353
echo "$as_me:7353: \$? = $ac_status" >&5
7327
7354
if (exit $ac_status) && test -s "$ac_outfile"; then
7328
7355
# The compiler can only warn and ignore the option if not recognized
7329
7356
# So say no if there are warnings other than the usual output.
7658
7685
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659
7686
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660
7687
-e 's:$: $lt_compiler_flag:'`
7661
(eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
7688
(eval echo "\"\$as_me:7688: $lt_compile\"" >&5)
7662
7689
(eval "$lt_compile" 2>conftest.err)
7664
7691
cat conftest.err >&5
7665
echo "$as_me:7665: \$? = $ac_status" >&5
7692
echo "$as_me:7692: \$? = $ac_status" >&5
7666
7693
if (exit $ac_status) && test -s "$ac_outfile"; then
7667
7694
# The compiler can only warn and ignore the option if not recognized
7668
7695
# So say no if there are warnings other than the usual output.
7763
7790
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764
7791
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765
7792
-e 's:$: $lt_compiler_flag:'`
7766
(eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
7793
(eval echo "\"\$as_me:7793: $lt_compile\"" >&5)
7767
7794
(eval "$lt_compile" 2>out/conftest.err)
7769
7796
cat out/conftest.err >&5
7770
echo "$as_me:7770: \$? = $ac_status" >&5
7797
echo "$as_me:7797: \$? = $ac_status" >&5
7771
7798
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7773
7800
# The compiler can only warn and ignore the option if not recognized
7818
7845
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819
7846
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820
7847
-e 's:$: $lt_compiler_flag:'`
7821
(eval echo "\"\$as_me:7821: $lt_compile\"" >&5)
7848
(eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
7822
7849
(eval "$lt_compile" 2>out/conftest.err)
7824
7851
cat out/conftest.err >&5
7825
echo "$as_me:7825: \$? = $ac_status" >&5
7852
echo "$as_me:7852: \$? = $ac_status" >&5
7826
7853
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7828
7855
# The compiler can only warn and ignore the option if not recognized
13185
13212
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186
13213
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187
13214
-e 's:$: $lt_compiler_flag:'`
13188
(eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
13215
(eval echo "\"\$as_me:13215: $lt_compile\"" >&5)
13189
13216
(eval "$lt_compile" 2>conftest.err)
13191
13218
cat conftest.err >&5
13192
echo "$as_me:13192: \$? = $ac_status" >&5
13219
echo "$as_me:13219: \$? = $ac_status" >&5
13193
13220
if (exit $ac_status) && test -s "$ac_outfile"; then
13194
13221
# The compiler can only warn and ignore the option if not recognized
13195
13222
# So say no if there are warnings other than the usual output.
13284
13311
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13285
13312
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13286
13313
-e 's:$: $lt_compiler_flag:'`
13287
(eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
13314
(eval echo "\"\$as_me:13314: $lt_compile\"" >&5)
13288
13315
(eval "$lt_compile" 2>out/conftest.err)
13290
13317
cat out/conftest.err >&5
13291
echo "$as_me:13291: \$? = $ac_status" >&5
13318
echo "$as_me:13318: \$? = $ac_status" >&5
13292
13319
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13294
13321
# The compiler can only warn and ignore the option if not recognized
13336
13363
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13337
13364
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13338
13365
-e 's:$: $lt_compiler_flag:'`
13339
(eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
13366
(eval echo "\"\$as_me:13366: $lt_compile\"" >&5)
13340
13367
(eval "$lt_compile" 2>out/conftest.err)
13342
13369
cat out/conftest.err >&5
13343
echo "$as_me:13343: \$? = $ac_status" >&5
13370
echo "$as_me:13370: \$? = $ac_status" >&5
13344
13371
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13346
13373
# The compiler can only warn and ignore the option if not recognized
14289
14316
# checks for libraries.
14317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-mt" >&5
14318
$as_echo_n "checking for main in -lboost_filesystem-mt... " >&6; }
14319
if test "${ac_cv_lib_boost_filesystem_mt_main+set}" = set; then :
14320
$as_echo_n "(cached) " >&6
14322
ac_check_lib_save_LIBS=$LIBS
14323
LIBS="-lboost_filesystem-mt $LIBS"
14324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325
/* end confdefs.h. */
14336
if ac_fn_c_try_link "$LINENO"; then :
14337
ac_cv_lib_boost_filesystem_mt_main=yes
14339
ac_cv_lib_boost_filesystem_mt_main=no
14341
rm -f core conftest.err conftest.$ac_objext \
14342
conftest$ac_exeext conftest.$ac_ext
14343
LIBS=$ac_check_lib_save_LIBS
14345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_mt_main" >&5
14346
$as_echo "$ac_cv_lib_boost_filesystem_mt_main" >&6; }
14347
if test "x$ac_cv_lib_boost_filesystem_mt_main" = x""yes; then :
14348
cat >>confdefs.h <<_ACEOF
14349
#define HAVE_LIBBOOST_FILESYSTEM_MT 1
14352
LIBS="-lboost_filesystem-mt $LIBS"
14355
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&5
14356
$as_echo "$as_me: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&2;}
14359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-mt" >&5
14360
$as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
14361
if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then :
14362
$as_echo_n "(cached) " >&6
14364
ac_check_lib_save_LIBS=$LIBS
14365
LIBS="-lboost_thread-mt $LIBS"
14366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367
/* end confdefs.h. */
14378
if ac_fn_c_try_link "$LINENO"; then :
14379
ac_cv_lib_boost_thread_mt_main=yes
14381
ac_cv_lib_boost_thread_mt_main=no
14383
rm -f core conftest.err conftest.$ac_objext \
14384
conftest$ac_exeext conftest.$ac_ext
14385
LIBS=$ac_check_lib_save_LIBS
14387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_mt_main" >&5
14388
$as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
14389
if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then :
14390
cat >>confdefs.h <<_ACEOF
14391
#define HAVE_LIBBOOST_THREAD_MT 1
14394
LIBS="-lboost_thread-mt $LIBS"
14397
as_fn_error "Unable to find Boost Thread library" "$LINENO" 5
14400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
14401
$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
14402
if test "${ac_cv_lib_sqlite3_sqlite3_initialize+set}" = set; then :
14403
$as_echo_n "(cached) " >&6
14405
ac_check_lib_save_LIBS=$LIBS
14406
LIBS="-lsqlite3 $LIBS"
14407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408
/* end confdefs.h. */
14410
/* Override any GCC internal prototype to avoid an error.
14411
Use char because int might match the return type of a GCC
14412
builtin and then its argument prototype would still apply. */
14416
char sqlite3_initialize ();
14420
return sqlite3_initialize ();
14425
if ac_fn_c_try_link "$LINENO"; then :
14426
ac_cv_lib_sqlite3_sqlite3_initialize=yes
14428
ac_cv_lib_sqlite3_sqlite3_initialize=no
14430
rm -f core conftest.err conftest.$ac_objext \
14431
conftest$ac_exeext conftest.$ac_ext
14432
LIBS=$ac_check_lib_save_LIBS
14434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
14435
$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
14436
if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = x""yes; then :
14437
cat >>confdefs.h <<_ACEOF
14438
#define HAVE_LIBSQLITE3 1
14441
LIBS="-lsqlite3 $LIBS"
14444
as_fn_error "Unable to find SQLite3 library" "$LINENO" 5
14291
14448
# checks for header files.
14292
14449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15015
15173
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15174
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15016
15175
ac_cs_version="\\
15017
15176
sqlite3cc config.status 0.1.0
15018
configured by $0, generated by GNU Autoconf 2.64,
15019
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15177
configured by $0, generated by GNU Autoconf 2.65,
15178
with options \\"\$ac_cs_config\\"
15021
15180
Copyright (C) 2009 Free Software Foundation, Inc.
15022
15181
This config.status script is free software; the Free Software Foundation