Changeset 24322
- Timestamp:
- 2011-07-24T22:46:23+12:00 (12 years ago)
- Location:
- gs3-extensions/audioDB/trunk/src/src
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/audioDB/trunk/src/src/CASCADE-MAKE/FFTEXTRACT.sh
r24320 r24322 24 24 25 25 if [ ! -f fftExtract-QM-svn/configure.ac ] ; then 26 echo "Copying audioDB-configure.ac to fftExtract-QM-snv/configure.ac"27 /bin/cp audioDB-configure.ac fftExtract-QM-svn/configure.ac26 echo "Copying fftExtract-configure.ac to fftExtract-QM-snv/configure.ac" 27 /bin/cp fftExtract-configure.ac fftExtract-QM-svn/configure.ac 28 28 fi 29 29 30 30 if [ ! -f fftExtract-QM-svn/configure ] ; then 31 echo "Copying audioDB-configure to fftExtract-QM-snv/configure"32 /bin/cp audioDB-configure fftExtract-QM-svn/configure31 echo "Copying fftExtract-configure to fftExtract-QM-snv/configure" 32 /bin/cp fftExtract-configure fftExtract-QM-svn/configure 33 33 fi 34 34 35 35 if [ ! -f fftExtract-QM-svn/Makefile.in ] ; then 36 echo "Copying audioDB-Makefile.in to fftExtract-QM-snv/Makefile.in"37 /bin/cp audioDB-Makefile.in fftExtract-QM-svn/Makefile.in36 echo "Copying fftExtract-Makefile.in to fftExtract-QM-snv/Makefile.in" 37 /bin/cp fftExtract-Makefile.in fftExtract-QM-svn/Makefile.in 38 38 fi 39 39 … … 41 41 echo "Creating empty fftExtract-QM-snv/config.h.in" 42 42 touch fftExtract-QM-svn/config.h.in 43 fi 44 45 if [ ! -f fftExtract-QM-svn/install-sh ] ; then 46 echo "Copying fftExtract-install-sh to fftExtract-QM-snv/install-sh" 47 /bin/cp fftExtract-install-sh fftExtract-QM-svn/install-sh 43 48 fi 44 49 -
gs3-extensions/audioDB/trunk/src/src/fftExtract-Makefile.in
r24321 r24322 1 DEBUGFLAGS=2 CFLAGS=-O3 -g3 # Original lines from Queen Marys4 #INCLUDE=-I/usr/include -I/usr/local/include -I/opt/local/include5 #LIBS=-L/usr/lib -L/usr/local/lib -L/opt/local/lib6 1 7 INCLUDE= 8 LIBS= 2 3 PREFIX=@prefix@ 4 5 CFLAGS=-O3 @CFLAGS@ 6 LDFLAGS=@LDFLAGS@ 7 DEBUGFLAGS=-g 8 9 INSTALL= @INSTALL@ 9 10 10 11 EXECUTABLE=fftExtract … … 15 16 16 17 ${EXECUTABLE}: fftExtract.o Makefile 17 g++ -o fftExtract ${CFLAGS} ${DEBUGFLAGS} fftExtract.o ${L IBS} ${INCLUDE} -lsndfile -lfftw3 -lm18 g++ -o fftExtract ${CFLAGS} ${DEBUGFLAGS} fftExtract.o ${LDFLAGS} -lsndfile -lfftw3 -lm 18 19 19 20 fftExtract.o: fftExtract.cpp Makefile 20 g++ -c ${CFLAGS} ${LIBS} ${INCLUDE} -Wall -Werror ${DEBUGFLAGS} fftExtract.cpp 21 g++ -c ${CFLAGS} ${LIBS} ${INCLUDE} -Wall ${DEBUGFLAGS} fftExtract.cpp 22 23 install: ${EXECUTABLE} 24 $(INSTALL) -m 755 -s $(EXECUTABLE) $(PREFIX)/bin. 21 25 22 26 clean: -
gs3-extensions/audioDB/trunk/src/src/fftExtract-configure
r24321 r24322 272 272 PACKAGE_BUGREPORT= 273 273 274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION L IBOBJS LTLIBOBJS'274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS' 275 275 ac_subst_files='' 276 276 … … 713 713 ac_cv_env_target_alias_set=${target_alias+set} 714 714 ac_cv_env_target_alias_value=$target_alias 715 ac_env_CC_set=${CC+set} 716 ac_env_CC_value=$CC 717 ac_cv_env_CC_set=${CC+set} 718 ac_cv_env_CC_value=$CC 719 ac_env_CFLAGS_set=${CFLAGS+set} 720 ac_env_CFLAGS_value=$CFLAGS 721 ac_cv_env_CFLAGS_set=${CFLAGS+set} 722 ac_cv_env_CFLAGS_value=$CFLAGS 723 ac_env_LDFLAGS_set=${LDFLAGS+set} 724 ac_env_LDFLAGS_value=$LDFLAGS 725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 726 ac_cv_env_LDFLAGS_value=$LDFLAGS 727 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 728 ac_env_CPPFLAGS_value=$CPPFLAGS 729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 731 ac_env_CXX_set=${CXX+set} 732 ac_env_CXX_value=$CXX 733 ac_cv_env_CXX_set=${CXX+set} 734 ac_cv_env_CXX_value=$CXX 735 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 736 ac_env_CXXFLAGS_value=$CXXFLAGS 737 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 738 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 715 739 716 740 # … … 779 803 780 804 cat <<\_ACEOF 805 806 Some influential environment variables: 807 CC C compiler command 808 CFLAGS C compiler flags 809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 810 nonstandard directory <lib dir> 811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 812 headers in a nonstandard directory <include dir> 813 CXX C++ compiler command 814 CXXFLAGS C++ compiler flags 815 816 Use these variables to override the choices made by `configure' or to help 817 it to find libraries and programs with nonstandard names/locations. 781 818 782 819 _ACEOF … … 1231 1268 1232 1269 1270 1271 LDFLAGS=$LDFLAGS 1272 1273 if test -z "$CFLAGS"; then 1274 CFLAGS=-O2 1275 fi 1276 1277 1278 ac_ext=c 1279 ac_cpp='$CPP $CPPFLAGS' 1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1283 if test -n "$ac_tool_prefix"; then 1284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1285 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1286 echo "$as_me:$LINENO: checking for $ac_word" >&5 1287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1288 if test "${ac_cv_prog_CC+set}" = set; then 1289 echo $ECHO_N "(cached) $ECHO_C" >&6 1290 else 1291 if test -n "$CC"; then 1292 ac_cv_prog_CC="$CC" # Let the user override the test. 1293 else 1294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1295 for as_dir in $PATH 1296 do 1297 IFS=$as_save_IFS 1298 test -z "$as_dir" && as_dir=. 1299 for ac_exec_ext in '' $ac_executable_extensions; do 1300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1301 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1303 break 2 1304 fi 1305 done 1306 done 1307 1308 fi 1309 fi 1310 CC=$ac_cv_prog_CC 1311 if test -n "$CC"; then 1312 echo "$as_me:$LINENO: result: $CC" >&5 1313 echo "${ECHO_T}$CC" >&6 1314 else 1315 echo "$as_me:$LINENO: result: no" >&5 1316 echo "${ECHO_T}no" >&6 1317 fi 1318 1319 fi 1320 if test -z "$ac_cv_prog_CC"; then 1321 ac_ct_CC=$CC 1322 # Extract the first word of "gcc", so it can be a program name with args. 1323 set dummy gcc; ac_word=$2 1324 echo "$as_me:$LINENO: checking for $ac_word" >&5 1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1327 echo $ECHO_N "(cached) $ECHO_C" >&6 1328 else 1329 if test -n "$ac_ct_CC"; then 1330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1331 else 1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1333 for as_dir in $PATH 1334 do 1335 IFS=$as_save_IFS 1336 test -z "$as_dir" && as_dir=. 1337 for ac_exec_ext in '' $ac_executable_extensions; do 1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1339 ac_cv_prog_ac_ct_CC="gcc" 1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1341 break 2 1342 fi 1343 done 1344 done 1345 1346 fi 1347 fi 1348 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1349 if test -n "$ac_ct_CC"; then 1350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1351 echo "${ECHO_T}$ac_ct_CC" >&6 1352 else 1353 echo "$as_me:$LINENO: result: no" >&5 1354 echo "${ECHO_T}no" >&6 1355 fi 1356 1357 CC=$ac_ct_CC 1358 else 1359 CC="$ac_cv_prog_CC" 1360 fi 1361 1362 if test -z "$CC"; then 1363 if test -n "$ac_tool_prefix"; then 1364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1365 set dummy ${ac_tool_prefix}cc; ac_word=$2 1366 echo "$as_me:$LINENO: checking for $ac_word" >&5 1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1368 if test "${ac_cv_prog_CC+set}" = set; then 1369 echo $ECHO_N "(cached) $ECHO_C" >&6 1370 else 1371 if test -n "$CC"; then 1372 ac_cv_prog_CC="$CC" # Let the user override the test. 1373 else 1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1375 for as_dir in $PATH 1376 do 1377 IFS=$as_save_IFS 1378 test -z "$as_dir" && as_dir=. 1379 for ac_exec_ext in '' $ac_executable_extensions; do 1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1381 ac_cv_prog_CC="${ac_tool_prefix}cc" 1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1383 break 2 1384 fi 1385 done 1386 done 1387 1388 fi 1389 fi 1390 CC=$ac_cv_prog_CC 1391 if test -n "$CC"; then 1392 echo "$as_me:$LINENO: result: $CC" >&5 1393 echo "${ECHO_T}$CC" >&6 1394 else 1395 echo "$as_me:$LINENO: result: no" >&5 1396 echo "${ECHO_T}no" >&6 1397 fi 1398 1399 fi 1400 if test -z "$ac_cv_prog_CC"; then 1401 ac_ct_CC=$CC 1402 # Extract the first word of "cc", so it can be a program name with args. 1403 set dummy cc; ac_word=$2 1404 echo "$as_me:$LINENO: checking for $ac_word" >&5 1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1407 echo $ECHO_N "(cached) $ECHO_C" >&6 1408 else 1409 if test -n "$ac_ct_CC"; then 1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1411 else 1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1413 for as_dir in $PATH 1414 do 1415 IFS=$as_save_IFS 1416 test -z "$as_dir" && as_dir=. 1417 for ac_exec_ext in '' $ac_executable_extensions; do 1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1419 ac_cv_prog_ac_ct_CC="cc" 1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1421 break 2 1422 fi 1423 done 1424 done 1425 1426 fi 1427 fi 1428 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1429 if test -n "$ac_ct_CC"; then 1430 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1431 echo "${ECHO_T}$ac_ct_CC" >&6 1432 else 1433 echo "$as_me:$LINENO: result: no" >&5 1434 echo "${ECHO_T}no" >&6 1435 fi 1436 1437 CC=$ac_ct_CC 1438 else 1439 CC="$ac_cv_prog_CC" 1440 fi 1441 1442 fi 1443 if test -z "$CC"; then 1444 # Extract the first word of "cc", so it can be a program name with args. 1445 set dummy cc; ac_word=$2 1446 echo "$as_me:$LINENO: checking for $ac_word" >&5 1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1448 if test "${ac_cv_prog_CC+set}" = set; then 1449 echo $ECHO_N "(cached) $ECHO_C" >&6 1450 else 1451 if test -n "$CC"; then 1452 ac_cv_prog_CC="$CC" # Let the user override the test. 1453 else 1454 ac_prog_rejected=no 1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1456 for as_dir in $PATH 1457 do 1458 IFS=$as_save_IFS 1459 test -z "$as_dir" && as_dir=. 1460 for ac_exec_ext in '' $ac_executable_extensions; do 1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1463 ac_prog_rejected=yes 1464 continue 1465 fi 1466 ac_cv_prog_CC="cc" 1467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1468 break 2 1469 fi 1470 done 1471 done 1472 1473 if test $ac_prog_rejected = yes; then 1474 # We found a bogon in the path, so make sure we never use it. 1475 set dummy $ac_cv_prog_CC 1476 shift 1477 if test $# != 0; then 1478 # We chose a different compiler from the bogus one. 1479 # However, it has the same basename, so the bogon will be chosen 1480 # first if we set CC to just the basename; use the full file name. 1481 shift 1482 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1483 fi 1484 fi 1485 fi 1486 fi 1487 CC=$ac_cv_prog_CC 1488 if test -n "$CC"; then 1489 echo "$as_me:$LINENO: result: $CC" >&5 1490 echo "${ECHO_T}$CC" >&6 1491 else 1492 echo "$as_me:$LINENO: result: no" >&5 1493 echo "${ECHO_T}no" >&6 1494 fi 1495 1496 fi 1497 if test -z "$CC"; then 1498 if test -n "$ac_tool_prefix"; then 1499 for ac_prog in cl 1500 do 1501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1503 echo "$as_me:$LINENO: checking for $ac_word" >&5 1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1505 if test "${ac_cv_prog_CC+set}" = set; then 1506 echo $ECHO_N "(cached) $ECHO_C" >&6 1507 else 1508 if test -n "$CC"; then 1509 ac_cv_prog_CC="$CC" # Let the user override the test. 1510 else 1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1512 for as_dir in $PATH 1513 do 1514 IFS=$as_save_IFS 1515 test -z "$as_dir" && as_dir=. 1516 for ac_exec_ext in '' $ac_executable_extensions; do 1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1520 break 2 1521 fi 1522 done 1523 done 1524 1525 fi 1526 fi 1527 CC=$ac_cv_prog_CC 1528 if test -n "$CC"; then 1529 echo "$as_me:$LINENO: result: $CC" >&5 1530 echo "${ECHO_T}$CC" >&6 1531 else 1532 echo "$as_me:$LINENO: result: no" >&5 1533 echo "${ECHO_T}no" >&6 1534 fi 1535 1536 test -n "$CC" && break 1537 done 1538 fi 1539 if test -z "$CC"; then 1540 ac_ct_CC=$CC 1541 for ac_prog in cl 1542 do 1543 # Extract the first word of "$ac_prog", so it can be a program name with args. 1544 set dummy $ac_prog; ac_word=$2 1545 echo "$as_me:$LINENO: checking for $ac_word" >&5 1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1548 echo $ECHO_N "(cached) $ECHO_C" >&6 1549 else 1550 if test -n "$ac_ct_CC"; then 1551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1552 else 1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1554 for as_dir in $PATH 1555 do 1556 IFS=$as_save_IFS 1557 test -z "$as_dir" && as_dir=. 1558 for ac_exec_ext in '' $ac_executable_extensions; do 1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1560 ac_cv_prog_ac_ct_CC="$ac_prog" 1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1562 break 2 1563 fi 1564 done 1565 done 1566 1567 fi 1568 fi 1569 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1570 if test -n "$ac_ct_CC"; then 1571 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1572 echo "${ECHO_T}$ac_ct_CC" >&6 1573 else 1574 echo "$as_me:$LINENO: result: no" >&5 1575 echo "${ECHO_T}no" >&6 1576 fi 1577 1578 test -n "$ac_ct_CC" && break 1579 done 1580 1581 CC=$ac_ct_CC 1582 fi 1583 1584 fi 1585 1586 1587 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1588 See \`config.log' for more details." >&5 1589 echo "$as_me: error: no acceptable C compiler found in \$PATH 1590 See \`config.log' for more details." >&2;} 1591 { (exit 1); exit 1; }; } 1592 1593 # Provide some information about the compiler. 1594 echo "$as_me:$LINENO:" \ 1595 "checking for C compiler version" >&5 1596 ac_compiler=`set X $ac_compile; echo $2` 1597 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1598 (eval $ac_compiler --version </dev/null >&5) 2>&5 1599 ac_status=$? 1600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1601 (exit $ac_status); } 1602 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1603 (eval $ac_compiler -v </dev/null >&5) 2>&5 1604 ac_status=$? 1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1606 (exit $ac_status); } 1607 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1608 (eval $ac_compiler -V </dev/null >&5) 2>&5 1609 ac_status=$? 1610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1611 (exit $ac_status); } 1612 1613 cat >conftest.$ac_ext <<_ACEOF 1614 /* confdefs.h. */ 1615 _ACEOF 1616 cat confdefs.h >>conftest.$ac_ext 1617 cat >>conftest.$ac_ext <<_ACEOF 1618 /* end confdefs.h. */ 1619 1620 int 1621 main () 1622 { 1623 1624 ; 1625 return 0; 1626 } 1627 _ACEOF 1628 ac_clean_files_save=$ac_clean_files 1629 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1630 # Try to create an executable without -o first, disregard a.out. 1631 # It will help us diagnose broken compilers, and finding out an intuition 1632 # of exeext. 1633 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1635 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1636 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1637 (eval $ac_link_default) 2>&5 1638 ac_status=$? 1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1640 (exit $ac_status); }; then 1641 # Find the output, starting from the most likely. This scheme is 1642 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1643 # resort. 1644 1645 # Be careful to initialize this variable, since it used to be cached. 1646 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1647 ac_cv_exeext= 1648 # b.out is created by i960 compilers. 1649 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1650 do 1651 test -f "$ac_file" || continue 1652 case $ac_file in 1653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1654 ;; 1655 conftest.$ac_ext ) 1656 # This is the source file. 1657 ;; 1658 [ab].out ) 1659 # We found the default executable, but exeext='' is most 1660 # certainly right. 1661 break;; 1662 *.* ) 1663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1664 # FIXME: I believe we export ac_cv_exeext for Libtool, 1665 # but it would be cool to find out if it's true. Does anybody 1666 # maintain Libtool? --akim. 1667 export ac_cv_exeext 1668 break;; 1669 * ) 1670 break;; 1671 esac 1672 done 1673 else 1674 echo "$as_me: failed program was:" >&5 1675 sed 's/^/| /' conftest.$ac_ext >&5 1676 1677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1678 See \`config.log' for more details." >&5 1679 echo "$as_me: error: C compiler cannot create executables 1680 See \`config.log' for more details." >&2;} 1681 { (exit 77); exit 77; }; } 1682 fi 1683 1684 ac_exeext=$ac_cv_exeext 1685 echo "$as_me:$LINENO: result: $ac_file" >&5 1686 echo "${ECHO_T}$ac_file" >&6 1687 1688 # Check the compiler produces executables we can run. If not, either 1689 # the compiler is broken, or we cross compile. 1690 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1691 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1692 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1693 # If not cross compiling, check that we can run a simple program. 1694 if test "$cross_compiling" != yes; then 1695 if { ac_try='./$ac_file' 1696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1697 (eval $ac_try) 2>&5 1698 ac_status=$? 1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1700 (exit $ac_status); }; }; then 1701 cross_compiling=no 1702 else 1703 if test "$cross_compiling" = maybe; then 1704 cross_compiling=yes 1705 else 1706 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1707 If you meant to cross compile, use \`--host'. 1708 See \`config.log' for more details." >&5 1709 echo "$as_me: error: cannot run C compiled programs. 1710 If you meant to cross compile, use \`--host'. 1711 See \`config.log' for more details." >&2;} 1712 { (exit 1); exit 1; }; } 1713 fi 1714 fi 1715 fi 1716 echo "$as_me:$LINENO: result: yes" >&5 1717 echo "${ECHO_T}yes" >&6 1718 1719 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1720 ac_clean_files=$ac_clean_files_save 1721 # Check the compiler produces executables we can run. If not, either 1722 # the compiler is broken, or we cross compile. 1723 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1724 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1725 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1726 echo "${ECHO_T}$cross_compiling" >&6 1727 1728 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1729 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1731 (eval $ac_link) 2>&5 1732 ac_status=$? 1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1734 (exit $ac_status); }; then 1735 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1737 # work properly (i.e., refer to `conftest.exe'), while it won't with 1738 # `rm'. 1739 for ac_file in conftest.exe conftest conftest.*; do 1740 test -f "$ac_file" || continue 1741 case $ac_file in 1742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1744 export ac_cv_exeext 1745 break;; 1746 * ) break;; 1747 esac 1748 done 1749 else 1750 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1751 See \`config.log' for more details." >&5 1752 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1753 See \`config.log' for more details." >&2;} 1754 { (exit 1); exit 1; }; } 1755 fi 1756 1757 rm -f conftest$ac_cv_exeext 1758 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1759 echo "${ECHO_T}$ac_cv_exeext" >&6 1760 1761 rm -f conftest.$ac_ext 1762 EXEEXT=$ac_cv_exeext 1763 ac_exeext=$EXEEXT 1764 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1765 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1766 if test "${ac_cv_objext+set}" = set; then 1767 echo $ECHO_N "(cached) $ECHO_C" >&6 1768 else 1769 cat >conftest.$ac_ext <<_ACEOF 1770 /* confdefs.h. */ 1771 _ACEOF 1772 cat confdefs.h >>conftest.$ac_ext 1773 cat >>conftest.$ac_ext <<_ACEOF 1774 /* end confdefs.h. */ 1775 1776 int 1777 main () 1778 { 1779 1780 ; 1781 return 0; 1782 } 1783 _ACEOF 1784 rm -f conftest.o conftest.obj 1785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1786 (eval $ac_compile) 2>&5 1787 ac_status=$? 1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1789 (exit $ac_status); }; then 1790 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1791 case $ac_file in 1792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1794 break;; 1795 esac 1796 done 1797 else 1798 echo "$as_me: failed program was:" >&5 1799 sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1802 See \`config.log' for more details." >&5 1803 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1804 See \`config.log' for more details." >&2;} 1805 { (exit 1); exit 1; }; } 1806 fi 1807 1808 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1809 fi 1810 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1811 echo "${ECHO_T}$ac_cv_objext" >&6 1812 OBJEXT=$ac_cv_objext 1813 ac_objext=$OBJEXT 1814 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1815 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1816 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1817 echo $ECHO_N "(cached) $ECHO_C" >&6 1818 else 1819 cat >conftest.$ac_ext <<_ACEOF 1820 /* confdefs.h. */ 1821 _ACEOF 1822 cat confdefs.h >>conftest.$ac_ext 1823 cat >>conftest.$ac_ext <<_ACEOF 1824 /* end confdefs.h. */ 1825 1826 int 1827 main () 1828 { 1829 #ifndef __GNUC__ 1830 choke me 1831 #endif 1832 1833 ; 1834 return 0; 1835 } 1836 _ACEOF 1837 rm -f conftest.$ac_objext 1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1839 (eval $ac_compile) 2>conftest.er1 1840 ac_status=$? 1841 grep -v '^ *+' conftest.er1 >conftest.err 1842 rm -f conftest.er1 1843 cat conftest.err >&5 1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1845 (exit $ac_status); } && 1846 { ac_try='test -z "$ac_c_werror_flag" 1847 || test ! -s conftest.err' 1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1849 (eval $ac_try) 2>&5 1850 ac_status=$? 1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1852 (exit $ac_status); }; } && 1853 { ac_try='test -s conftest.$ac_objext' 1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1855 (eval $ac_try) 2>&5 1856 ac_status=$? 1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1858 (exit $ac_status); }; }; then 1859 ac_compiler_gnu=yes 1860 else 1861 echo "$as_me: failed program was:" >&5 1862 sed 's/^/| /' conftest.$ac_ext >&5 1863 1864 ac_compiler_gnu=no 1865 fi 1866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1867 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1868 1869 fi 1870 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1872 GCC=`test $ac_compiler_gnu = yes && echo yes` 1873 ac_test_CFLAGS=${CFLAGS+set} 1874 ac_save_CFLAGS=$CFLAGS 1875 CFLAGS="-g" 1876 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1878 if test "${ac_cv_prog_cc_g+set}" = set; then 1879 echo $ECHO_N "(cached) $ECHO_C" >&6 1880 else 1881 cat >conftest.$ac_ext <<_ACEOF 1882 /* confdefs.h. */ 1883 _ACEOF 1884 cat confdefs.h >>conftest.$ac_ext 1885 cat >>conftest.$ac_ext <<_ACEOF 1886 /* end confdefs.h. */ 1887 1888 int 1889 main () 1890 { 1891 1892 ; 1893 return 0; 1894 } 1895 _ACEOF 1896 rm -f conftest.$ac_objext 1897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1898 (eval $ac_compile) 2>conftest.er1 1899 ac_status=$? 1900 grep -v '^ *+' conftest.er1 >conftest.err 1901 rm -f conftest.er1 1902 cat conftest.err >&5 1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1904 (exit $ac_status); } && 1905 { ac_try='test -z "$ac_c_werror_flag" 1906 || test ! -s conftest.err' 1907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1908 (eval $ac_try) 2>&5 1909 ac_status=$? 1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1911 (exit $ac_status); }; } && 1912 { ac_try='test -s conftest.$ac_objext' 1913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1914 (eval $ac_try) 2>&5 1915 ac_status=$? 1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1917 (exit $ac_status); }; }; then 1918 ac_cv_prog_cc_g=yes 1919 else 1920 echo "$as_me: failed program was:" >&5 1921 sed 's/^/| /' conftest.$ac_ext >&5 1922 1923 ac_cv_prog_cc_g=no 1924 fi 1925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1926 fi 1927 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1928 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1929 if test "$ac_test_CFLAGS" = set; then 1930 CFLAGS=$ac_save_CFLAGS 1931 elif test $ac_cv_prog_cc_g = yes; then 1932 if test "$GCC" = yes; then 1933 CFLAGS="-g -O2" 1934 else 1935 CFLAGS="-g" 1936 fi 1937 else 1938 if test "$GCC" = yes; then 1939 CFLAGS="-O2" 1940 else 1941 CFLAGS= 1942 fi 1943 fi 1944 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1945 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1946 if test "${ac_cv_prog_cc_stdc+set}" = set; then 1947 echo $ECHO_N "(cached) $ECHO_C" >&6 1948 else 1949 ac_cv_prog_cc_stdc=no 1950 ac_save_CC=$CC 1951 cat >conftest.$ac_ext <<_ACEOF 1952 /* confdefs.h. */ 1953 _ACEOF 1954 cat confdefs.h >>conftest.$ac_ext 1955 cat >>conftest.$ac_ext <<_ACEOF 1956 /* end confdefs.h. */ 1957 #include <stdarg.h> 1958 #include <stdio.h> 1959 #include <sys/types.h> 1960 #include <sys/stat.h> 1961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1962 struct buf { int x; }; 1963 FILE * (*rcsopen) (struct buf *, struct stat *, int); 1964 static char *e (p, i) 1965 char **p; 1966 int i; 1967 { 1968 return p[i]; 1969 } 1970 static char *f (char * (*g) (char **, int), char **p, ...) 1971 { 1972 char *s; 1973 va_list v; 1974 va_start (v,p); 1975 s = g (p, va_arg (v,int)); 1976 va_end (v); 1977 return s; 1978 } 1979 1980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 1981 function prototypes and stuff, but not '\xHH' hex character constants. 1982 These don't provoke an error unfortunately, instead are silently treated 1983 as 'x'. The following induces an error, until -std1 is added to get 1984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 1985 array size at least. It's necessary to write '\x00'==0 to get something 1986 that's true only with -std1. */ 1987 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 1988 1989 int test (int i, double x); 1990 struct s1 {int (*f) (int a);}; 1991 struct s2 {int (*f) (double a);}; 1992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1993 int argc; 1994 char **argv; 1995 int 1996 main () 1997 { 1998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1999 ; 2000 return 0; 2001 } 2002 _ACEOF 2003 # Don't try gcc -ansi; that turns off useful extensions and 2004 # breaks some systems' header files. 2005 # AIX -qlanglvl=ansi 2006 # Ultrix and OSF/1 -std1 2007 # HP-UX 10.20 and later -Ae 2008 # HP-UX older versions -Aa -D_HPUX_SOURCE 2009 # SVR4 -Xc -D__EXTENSIONS__ 2010 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2011 do 2012 CC="$ac_save_CC $ac_arg" 2013 rm -f conftest.$ac_objext 2014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2015 (eval $ac_compile) 2>conftest.er1 2016 ac_status=$? 2017 grep -v '^ *+' conftest.er1 >conftest.err 2018 rm -f conftest.er1 2019 cat conftest.err >&5 2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2021 (exit $ac_status); } && 2022 { ac_try='test -z "$ac_c_werror_flag" 2023 || test ! -s conftest.err' 2024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2025 (eval $ac_try) 2>&5 2026 ac_status=$? 2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2028 (exit $ac_status); }; } && 2029 { ac_try='test -s conftest.$ac_objext' 2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2031 (eval $ac_try) 2>&5 2032 ac_status=$? 2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2034 (exit $ac_status); }; }; then 2035 ac_cv_prog_cc_stdc=$ac_arg 2036 break 2037 else 2038 echo "$as_me: failed program was:" >&5 2039 sed 's/^/| /' conftest.$ac_ext >&5 2040 2041 fi 2042 rm -f conftest.err conftest.$ac_objext 2043 done 2044 rm -f conftest.$ac_ext conftest.$ac_objext 2045 CC=$ac_save_CC 2046 2047 fi 2048 2049 case "x$ac_cv_prog_cc_stdc" in 2050 x|xno) 2051 echo "$as_me:$LINENO: result: none needed" >&5 2052 echo "${ECHO_T}none needed" >&6 ;; 2053 *) 2054 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2055 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2056 CC="$CC $ac_cv_prog_cc_stdc" ;; 2057 esac 2058 2059 # Some people use a C++ compiler to compile C. Since we use `exit', 2060 # in C++ we need to declare it. In case someone uses the same compiler 2061 # for both compiling C and C++ we need to have the C++ compiler decide 2062 # the declaration of exit, since it's the most demanding environment. 2063 cat >conftest.$ac_ext <<_ACEOF 2064 #ifndef __cplusplus 2065 choke me 2066 #endif 2067 _ACEOF 2068 rm -f conftest.$ac_objext 2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2070 (eval $ac_compile) 2>conftest.er1 2071 ac_status=$? 2072 grep -v '^ *+' conftest.er1 >conftest.err 2073 rm -f conftest.er1 2074 cat conftest.err >&5 2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2076 (exit $ac_status); } && 2077 { ac_try='test -z "$ac_c_werror_flag" 2078 || test ! -s conftest.err' 2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2080 (eval $ac_try) 2>&5 2081 ac_status=$? 2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2083 (exit $ac_status); }; } && 2084 { ac_try='test -s conftest.$ac_objext' 2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2086 (eval $ac_try) 2>&5 2087 ac_status=$? 2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2089 (exit $ac_status); }; }; then 2090 for ac_declaration in \ 2091 '' \ 2092 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2093 'extern "C" void std::exit (int); using std::exit;' \ 2094 'extern "C" void exit (int) throw ();' \ 2095 'extern "C" void exit (int);' \ 2096 'void exit (int);' 2097 do 2098 cat >conftest.$ac_ext <<_ACEOF 2099 /* confdefs.h. */ 2100 _ACEOF 2101 cat confdefs.h >>conftest.$ac_ext 2102 cat >>conftest.$ac_ext <<_ACEOF 2103 /* end confdefs.h. */ 2104 $ac_declaration 2105 #include <stdlib.h> 2106 int 2107 main () 2108 { 2109 exit (42); 2110 ; 2111 return 0; 2112 } 2113 _ACEOF 2114 rm -f conftest.$ac_objext 2115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2116 (eval $ac_compile) 2>conftest.er1 2117 ac_status=$? 2118 grep -v '^ *+' conftest.er1 >conftest.err 2119 rm -f conftest.er1 2120 cat conftest.err >&5 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); } && 2123 { ac_try='test -z "$ac_c_werror_flag" 2124 || test ! -s conftest.err' 2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2126 (eval $ac_try) 2>&5 2127 ac_status=$? 2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2129 (exit $ac_status); }; } && 2130 { ac_try='test -s conftest.$ac_objext' 2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2132 (eval $ac_try) 2>&5 2133 ac_status=$? 2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2135 (exit $ac_status); }; }; then 2136 : 2137 else 2138 echo "$as_me: failed program was:" >&5 2139 sed 's/^/| /' conftest.$ac_ext >&5 2140 2141 continue 2142 fi 2143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2144 cat >conftest.$ac_ext <<_ACEOF 2145 /* confdefs.h. */ 2146 _ACEOF 2147 cat confdefs.h >>conftest.$ac_ext 2148 cat >>conftest.$ac_ext <<_ACEOF 2149 /* end confdefs.h. */ 2150 $ac_declaration 2151 int 2152 main () 2153 { 2154 exit (42); 2155 ; 2156 return 0; 2157 } 2158 _ACEOF 2159 rm -f conftest.$ac_objext 2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2161 (eval $ac_compile) 2>conftest.er1 2162 ac_status=$? 2163 grep -v '^ *+' conftest.er1 >conftest.err 2164 rm -f conftest.er1 2165 cat conftest.err >&5 2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2167 (exit $ac_status); } && 2168 { ac_try='test -z "$ac_c_werror_flag" 2169 || test ! -s conftest.err' 2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2171 (eval $ac_try) 2>&5 2172 ac_status=$? 2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2174 (exit $ac_status); }; } && 2175 { ac_try='test -s conftest.$ac_objext' 2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2177 (eval $ac_try) 2>&5 2178 ac_status=$? 2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2180 (exit $ac_status); }; }; then 2181 break 2182 else 2183 echo "$as_me: failed program was:" >&5 2184 sed 's/^/| /' conftest.$ac_ext >&5 2185 2186 fi 2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2188 done 2189 rm -f conftest* 2190 if test -n "$ac_declaration"; then 2191 echo '#ifdef __cplusplus' >>confdefs.h 2192 echo $ac_declaration >>confdefs.h 2193 echo '#endif' >>confdefs.h 2194 fi 2195 2196 else 2197 echo "$as_me: failed program was:" >&5 2198 sed 's/^/| /' conftest.$ac_ext >&5 2199 2200 fi 2201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2202 ac_ext=c 2203 ac_cpp='$CPP $CPPFLAGS' 2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2207 2208 ac_ext=cc 2209 ac_cpp='$CXXCPP $CPPFLAGS' 2210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2213 if test -n "$ac_tool_prefix"; then 2214 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2215 do 2216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2218 echo "$as_me:$LINENO: checking for $ac_word" >&5 2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2220 if test "${ac_cv_prog_CXX+set}" = set; then 2221 echo $ECHO_N "(cached) $ECHO_C" >&6 2222 else 2223 if test -n "$CXX"; then 2224 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2225 else 2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2227 for as_dir in $PATH 2228 do 2229 IFS=$as_save_IFS 2230 test -z "$as_dir" && as_dir=. 2231 for ac_exec_ext in '' $ac_executable_extensions; do 2232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2233 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2235 break 2 2236 fi 2237 done 2238 done 2239 2240 fi 2241 fi 2242 CXX=$ac_cv_prog_CXX 2243 if test -n "$CXX"; then 2244 echo "$as_me:$LINENO: result: $CXX" >&5 2245 echo "${ECHO_T}$CXX" >&6 2246 else 2247 echo "$as_me:$LINENO: result: no" >&5 2248 echo "${ECHO_T}no" >&6 2249 fi 2250 2251 test -n "$CXX" && break 2252 done 2253 fi 2254 if test -z "$CXX"; then 2255 ac_ct_CXX=$CXX 2256 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2257 do 2258 # Extract the first word of "$ac_prog", so it can be a program name with args. 2259 set dummy $ac_prog; ac_word=$2 2260 echo "$as_me:$LINENO: checking for $ac_word" >&5 2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2262 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2263 echo $ECHO_N "(cached) $ECHO_C" >&6 2264 else 2265 if test -n "$ac_ct_CXX"; then 2266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2267 else 2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2269 for as_dir in $PATH 2270 do 2271 IFS=$as_save_IFS 2272 test -z "$as_dir" && as_dir=. 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2275 ac_cv_prog_ac_ct_CXX="$ac_prog" 2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2277 break 2 2278 fi 2279 done 2280 done 2281 2282 fi 2283 fi 2284 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2285 if test -n "$ac_ct_CXX"; then 2286 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2287 echo "${ECHO_T}$ac_ct_CXX" >&6 2288 else 2289 echo "$as_me:$LINENO: result: no" >&5 2290 echo "${ECHO_T}no" >&6 2291 fi 2292 2293 test -n "$ac_ct_CXX" && break 2294 done 2295 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2296 2297 CXX=$ac_ct_CXX 2298 fi 2299 2300 2301 # Provide some information about the compiler. 2302 echo "$as_me:$LINENO:" \ 2303 "checking for C++ compiler version" >&5 2304 ac_compiler=`set X $ac_compile; echo $2` 2305 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2306 (eval $ac_compiler --version </dev/null >&5) 2>&5 2307 ac_status=$? 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2309 (exit $ac_status); } 2310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2311 (eval $ac_compiler -v </dev/null >&5) 2>&5 2312 ac_status=$? 2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2314 (exit $ac_status); } 2315 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2316 (eval $ac_compiler -V </dev/null >&5) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); } 2320 2321 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2322 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2323 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325 else 2326 cat >conftest.$ac_ext <<_ACEOF 2327 /* confdefs.h. */ 2328 _ACEOF 2329 cat confdefs.h >>conftest.$ac_ext 2330 cat >>conftest.$ac_ext <<_ACEOF 2331 /* end confdefs.h. */ 2332 2333 int 2334 main () 2335 { 2336 #ifndef __GNUC__ 2337 choke me 2338 #endif 2339 2340 ; 2341 return 0; 2342 } 2343 _ACEOF 2344 rm -f conftest.$ac_objext 2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2346 (eval $ac_compile) 2>conftest.er1 2347 ac_status=$? 2348 grep -v '^ *+' conftest.er1 >conftest.err 2349 rm -f conftest.er1 2350 cat conftest.err >&5 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2352 (exit $ac_status); } && 2353 { ac_try='test -z "$ac_cxx_werror_flag" 2354 || test ! -s conftest.err' 2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2356 (eval $ac_try) 2>&5 2357 ac_status=$? 2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 (exit $ac_status); }; } && 2360 { ac_try='test -s conftest.$ac_objext' 2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2362 (eval $ac_try) 2>&5 2363 ac_status=$? 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2365 (exit $ac_status); }; }; then 2366 ac_compiler_gnu=yes 2367 else 2368 echo "$as_me: failed program was:" >&5 2369 sed 's/^/| /' conftest.$ac_ext >&5 2370 2371 ac_compiler_gnu=no 2372 fi 2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2374 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2375 2376 fi 2377 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2378 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2379 GXX=`test $ac_compiler_gnu = yes && echo yes` 2380 ac_test_CXXFLAGS=${CXXFLAGS+set} 2381 ac_save_CXXFLAGS=$CXXFLAGS 2382 CXXFLAGS="-g" 2383 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2384 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2385 if test "${ac_cv_prog_cxx_g+set}" = set; then 2386 echo $ECHO_N "(cached) $ECHO_C" >&6 2387 else 2388 cat >conftest.$ac_ext <<_ACEOF 2389 /* confdefs.h. */ 2390 _ACEOF 2391 cat confdefs.h >>conftest.$ac_ext 2392 cat >>conftest.$ac_ext <<_ACEOF 2393 /* end confdefs.h. */ 2394 2395 int 2396 main () 2397 { 2398 2399 ; 2400 return 0; 2401 } 2402 _ACEOF 2403 rm -f conftest.$ac_objext 2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2405 (eval $ac_compile) 2>conftest.er1 2406 ac_status=$? 2407 grep -v '^ *+' conftest.er1 >conftest.err 2408 rm -f conftest.er1 2409 cat conftest.err >&5 2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2411 (exit $ac_status); } && 2412 { ac_try='test -z "$ac_cxx_werror_flag" 2413 || test ! -s conftest.err' 2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2415 (eval $ac_try) 2>&5 2416 ac_status=$? 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); }; } && 2419 { ac_try='test -s conftest.$ac_objext' 2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2421 (eval $ac_try) 2>&5 2422 ac_status=$? 2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2424 (exit $ac_status); }; }; then 2425 ac_cv_prog_cxx_g=yes 2426 else 2427 echo "$as_me: failed program was:" >&5 2428 sed 's/^/| /' conftest.$ac_ext >&5 2429 2430 ac_cv_prog_cxx_g=no 2431 fi 2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2433 fi 2434 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2435 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2436 if test "$ac_test_CXXFLAGS" = set; then 2437 CXXFLAGS=$ac_save_CXXFLAGS 2438 elif test $ac_cv_prog_cxx_g = yes; then 2439 if test "$GXX" = yes; then 2440 CXXFLAGS="-g -O2" 2441 else 2442 CXXFLAGS="-g" 2443 fi 2444 else 2445 if test "$GXX" = yes; then 2446 CXXFLAGS="-O2" 2447 else 2448 CXXFLAGS= 2449 fi 2450 fi 2451 for ac_declaration in \ 2452 '' \ 2453 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2454 'extern "C" void std::exit (int); using std::exit;' \ 2455 'extern "C" void exit (int) throw ();' \ 2456 'extern "C" void exit (int);' \ 2457 'void exit (int);' 2458 do 2459 cat >conftest.$ac_ext <<_ACEOF 2460 /* confdefs.h. */ 2461 _ACEOF 2462 cat confdefs.h >>conftest.$ac_ext 2463 cat >>conftest.$ac_ext <<_ACEOF 2464 /* end confdefs.h. */ 2465 $ac_declaration 2466 #include <stdlib.h> 2467 int 2468 main () 2469 { 2470 exit (42); 2471 ; 2472 return 0; 2473 } 2474 _ACEOF 2475 rm -f conftest.$ac_objext 2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2477 (eval $ac_compile) 2>conftest.er1 2478 ac_status=$? 2479 grep -v '^ *+' conftest.er1 >conftest.err 2480 rm -f conftest.er1 2481 cat conftest.err >&5 2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2483 (exit $ac_status); } && 2484 { ac_try='test -z "$ac_cxx_werror_flag" 2485 || test ! -s conftest.err' 2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2487 (eval $ac_try) 2>&5 2488 ac_status=$? 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); }; } && 2491 { ac_try='test -s conftest.$ac_objext' 2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2493 (eval $ac_try) 2>&5 2494 ac_status=$? 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); }; }; then 2497 : 2498 else 2499 echo "$as_me: failed program was:" >&5 2500 sed 's/^/| /' conftest.$ac_ext >&5 2501 2502 continue 2503 fi 2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2505 cat >conftest.$ac_ext <<_ACEOF 2506 /* confdefs.h. */ 2507 _ACEOF 2508 cat confdefs.h >>conftest.$ac_ext 2509 cat >>conftest.$ac_ext <<_ACEOF 2510 /* end confdefs.h. */ 2511 $ac_declaration 2512 int 2513 main () 2514 { 2515 exit (42); 2516 ; 2517 return 0; 2518 } 2519 _ACEOF 2520 rm -f conftest.$ac_objext 2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2522 (eval $ac_compile) 2>conftest.er1 2523 ac_status=$? 2524 grep -v '^ *+' conftest.er1 >conftest.err 2525 rm -f conftest.er1 2526 cat conftest.err >&5 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); } && 2529 { ac_try='test -z "$ac_cxx_werror_flag" 2530 || test ! -s conftest.err' 2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2532 (eval $ac_try) 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; } && 2536 { ac_try='test -s conftest.$ac_objext' 2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2538 (eval $ac_try) 2>&5 2539 ac_status=$? 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); }; }; then 2542 break 2543 else 2544 echo "$as_me: failed program was:" >&5 2545 sed 's/^/| /' conftest.$ac_ext >&5 2546 2547 fi 2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2549 done 2550 rm -f conftest* 2551 if test -n "$ac_declaration"; then 2552 echo '#ifdef __cplusplus' >>confdefs.h 2553 echo $ac_declaration >>confdefs.h 2554 echo '#endif' >>confdefs.h 2555 fi 2556 2557 ac_ext=c 2558 ac_cpp='$CPP $CPPFLAGS' 2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2562 2563 2564 ac_aux_dir= 2565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2566 if test -f $ac_dir/install-sh; then 2567 ac_aux_dir=$ac_dir 2568 ac_install_sh="$ac_aux_dir/install-sh -c" 2569 break 2570 elif test -f $ac_dir/install.sh; then 2571 ac_aux_dir=$ac_dir 2572 ac_install_sh="$ac_aux_dir/install.sh -c" 2573 break 2574 elif test -f $ac_dir/shtool; then 2575 ac_aux_dir=$ac_dir 2576 ac_install_sh="$ac_aux_dir/shtool install -c" 2577 break 2578 fi 2579 done 2580 if test -z "$ac_aux_dir"; then 2581 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2582 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2583 { (exit 1); exit 1; }; } 2584 fi 2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2588 2589 # Find a good install program. We prefer a C program (faster), 2590 # so one script is as good as another. But avoid the broken or 2591 # incompatible versions: 2592 # SysV /etc/install, /usr/sbin/install 2593 # SunOS /usr/etc/install 2594 # IRIX /sbin/install 2595 # AIX /bin/install 2596 # AmigaOS /C/install, which installs bootblocks on floppy discs 2597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2600 # OS/2's system install, which has a completely different semantic 2601 # ./install, which can be erroneously created by make from ./install.sh. 2602 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2603 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2604 if test -z "$INSTALL"; then 2605 if test "${ac_cv_path_install+set}" = set; then 2606 echo $ECHO_N "(cached) $ECHO_C" >&6 2607 else 2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609 for as_dir in $PATH 2610 do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 # Account for people who put trailing slashes in PATH elements. 2614 case $as_dir/ in 2615 ./ | .// | /cC/* | \ 2616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2617 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2618 /usr/ucb/* ) ;; 2619 *) 2620 # OSF1 and SCO ODT 3.0 have their own names for install. 2621 # Don't use installbsd from OSF since it installs stuff as root 2622 # by default. 2623 for ac_prog in ginstall scoinst install; do 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2626 if test $ac_prog = install && 2627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2628 # AIX install. It has an incompatible calling convention. 2629 : 2630 elif test $ac_prog = install && 2631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2632 # program-specific install script used by HP pwplus--don't use. 2633 : 2634 else 2635 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2636 break 3 2637 fi 2638 fi 2639 done 2640 done 2641 ;; 2642 esac 2643 done 2644 2645 2646 fi 2647 if test "${ac_cv_path_install+set}" = set; then 2648 INSTALL=$ac_cv_path_install 2649 else 2650 # As a last resort, use the slow shell script. We don't cache a 2651 # path for INSTALL within a source directory, because that will 2652 # break other packages using the cache if that directory is 2653 # removed, or if the path is relative. 2654 INSTALL=$ac_install_sh 2655 fi 2656 fi 2657 echo "$as_me:$LINENO: result: $INSTALL" >&5 2658 echo "${ECHO_T}$INSTALL" >&6 2659 2660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2661 # It thinks the first close brace ends the variable substitution. 2662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2663 2664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2665 2666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2667 2668 1233 2669 ac_config_files="$ac_config_files Makefile" 1234 2670 cat >confcache <<\_ACEOF … … 1662 3098 gives unlimited permission to copy, distribute and modify it." 1663 3099 srcdir=$srcdir 3100 INSTALL="$INSTALL" 1664 3101 _ACEOF 1665 3102 … … 1844 3281 s,@PACKAGE@,$PACKAGE,;t t 1845 3282 s,@VERSION@,$VERSION,;t t 3283 s,@LDFLAGS@,$LDFLAGS,;t t 3284 s,@CFLAGS@,$CFLAGS,;t t 3285 s,@CC@,$CC,;t t 3286 s,@CPPFLAGS@,$CPPFLAGS,;t t 3287 s,@ac_ct_CC@,$ac_ct_CC,;t t 3288 s,@EXEEXT@,$EXEEXT,;t t 3289 s,@OBJEXT@,$OBJEXT,;t t 3290 s,@CXX@,$CXX,;t t 3291 s,@CXXFLAGS@,$CXXFLAGS,;t t 3292 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 3293 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 3294 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 3295 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 1846 3296 s,@LIBOBJS@,$LIBOBJS,;t t 1847 3297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t … … 2007 3457 2008 3458 3459 case $INSTALL in 3460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 3461 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 3462 esac 2009 3463 2010 3464 if test x"$ac_file" != x-; then … … 2068 3522 s,@top_builddir@,$ac_top_builddir,;t t 2069 3523 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3524 s,@INSTALL@,$ac_INSTALL,;t t 2070 3525 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 2071 3526 rm -f $tmp/stdin -
gs3-extensions/audioDB/trunk/src/src/fftExtract-configure.ac
r24321 r24322 9 9 AC_SUBST(VERSION) 10 10 11 12 dnl Checks for programs. 13 LDFLAGS=$LDFLAGS 14 AC_SUBST(LDFLAGS) 15 dnl only set CFLAGS if not already set in environment 16 if test -z "$CFLAGS"; then 17 CFLAGS=-O2 18 fi 19 AC_SUBST(CFLAGS) 20 21 AC_PROG_CC 22 AC_PROG_CXX 23 24 AC_PROG_INSTALL 25 11 26 AC_OUTPUT(Makefile)
Note:
See TracChangeset
for help on using the changeset viewer.