~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: C.J. Adams-Collier
  • Date: 2008-10-08 21:47:58 UTC
  • mto: (492.1.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 497.
  • Revision ID: cjac@dev0-20081008214758-5wv7ad0gkhuinbwb
* fixed --disable-assert code (thanks Monty)
* added check for auth_pam
* added Host CPU info
* better names for the C++ header and namespace info

Show diffs side-by-side

added added

removed removed

Lines of Context:
1315
1315
fi
1316
1316
 
1317
1317
dnl TODO: Remove this define once we are using 2.61 across the board.
1318
 
# AC_HEADER_ASSERT
 
1318
# AX_HEADER_ASSERT
1319
1319
# ----------------
1320
1320
# Check whether to enable assertions.
1321
 
ifdef([AC_HEADER_ASSERT], [], [AC_DEFUN([AC_HEADER_ASSERT],
 
1321
AC_DEFUN([AX_HEADER_ASSERT],
1322
1322
[
1323
1323
  AC_MSG_CHECKING([whether to enable assertions])
1324
1324
  AC_ARG_ENABLE([assert],
1325
 
    [  --disable-assert        turn off assertions],
1326
 
    [AC_MSG_RESULT([no])
1327
 
     AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])],
1328
 
    [AC_MSG_RESULT(yes)])
1329
 
])])
1330
 
 
1331
 
if test "x${NDEBUG}" -eq "x1"
1332
 
then
1333
 
        ac_assert="no"
1334
 
else
1335
 
        ac_assert="yes"
1336
 
fi
1337
 
 
1338
 
AC_HEADER_ASSERT
 
1325
    [AS_HELP_STRING([--disable-assert],
 
1326
       [Turn off assertions])],
 
1327
    [ac_cv_assert="no"],
 
1328
    [ac_cv_assert="yes"])
 
1329
  AC_MSG_RESULT([$ac_cv_assert])
 
1330
])
 
1331
 
 
1332
AX_HEADER_ASSERT
1339
1333
 
1340
1334
CFLAGS="${SYMBOLS_CFLAGS} ${CFLAGS}"
1341
1335
CXXFLAGS="${SYMBOLS_CXXFLAGS} ${CXXFLAGS}"
1502
1496
echo ""
1503
1497
echo "   * Installation prefix:       $prefix"
1504
1498
echo "   * System type:               $SYSTEM_TYPE"
 
1499
echo "   * Host CPU:                  $host_cpu"
1505
1500
echo "   * C Compiler:                $CC_VERSION"
1506
1501
echo "   * C++ Compiler:              $CXX"
1507
 
echo "   * Assertions enabled:        $ac_assert"
 
1502
echo "   * Build auth_pam:            $ac_cv_header_security_pam_appl_h"
 
1503
echo "   * Assertions enabled:        $ac_cv_assert"
1508
1504
echo "   * Debug enabled:             $with_debug"
1509
1505
echo "   * Profiling enabled:         $ac_profiling"
1510
1506
echo "   * Coverage enabled:          $ac_coverage"
1511
1507
echo "   * Warnings as failure:       $ac_warn_fail"
1512
 
echo "   * ac_cv_cxx_cstdint:         $ac_cv_cxx_cstdint"
1513
 
echo "   * ac_cv_cxx_hash_map:        $ac_cv_cxx_hash_map"
1514
 
echo "   * ac_cv_cxx_hash_namespace:  $ac_cv_cxx_hash_namespace"
1515
 
echo "   * ac_cv_cxx_cmath:           $ac_cv_cxx_cmath"
1516
 
echo "   * ac_cv_cxx_cmath_namespace: $ac_cv_cxx_cmath_namespace"
 
1508
echo "   * C++ cstdint location:      $ac_cv_cxx_cstdint"
 
1509
echo "   * C++ hash_map location:     $ac_cv_cxx_hash_map"
 
1510
echo "   * C++ hash namespace:        $ac_cv_cxx_hash_namespace"
 
1511
echo "   * C++ cmath location:        $ac_cv_cxx_cmath"
 
1512
echo "   * C++ cmath namespace:       $ac_cv_cxx_cmath_namespace"
1517
1513
echo ""
1518
1514
echo "---"