T.83.2: Need -lm for round().

This commit is contained in:
Felicity Tarnell 2014-03-05 16:09:02 +00:00
parent 197adb654a
commit 81c1f680ae
2 changed files with 58 additions and 10 deletions

64
configure vendored
View file

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for RT/TTS T.83.1.
# Generated by GNU Autoconf 2.69 for RT/TTS T.83.2.
#
# Report bugs to <felicity@loreley.flyingparchment.org.uk>.
#
@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='RT/TTS'
PACKAGE_TARNAME='rt-tts'
PACKAGE_VERSION='T.83.1'
PACKAGE_STRING='RT/TTS T.83.1'
PACKAGE_VERSION='T.83.2'
PACKAGE_STRING='RT/TTS T.83.2'
PACKAGE_BUGREPORT='felicity@loreley.flyingparchment.org.uk'
PACKAGE_URL=''
@ -1232,7 +1232,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures RT/TTS T.83.1 to adapt to many kinds of systems.
\`configure' configures RT/TTS T.83.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1293,7 +1293,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of RT/TTS T.83.1:";;
short | recursive ) echo "Configuration of RT/TTS T.83.2:";;
esac
cat <<\_ACEOF
@ -1380,7 +1380,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
RT/TTS configure T.83.1
RT/TTS configure T.83.2
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@ -1749,7 +1749,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by RT/TTS $as_me T.83.1, which was
It was created by RT/TTS $as_me T.83.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@ -4196,6 +4196,52 @@ fi
done
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
$as_echo_n "checking for round in -lm... " >&6; }
if ${ac_cv_lib_m_round+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char round ();
int
main ()
{
return round ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_m_round=yes
else
ac_cv_lib_m_round=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
$as_echo "$ac_cv_lib_m_round" >&6; }
if test "x$ac_cv_lib_m_round" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBM 1
_ACEOF
LIBS="-lm $LIBS"
fi
oLDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -framework CoreFoundation -framework IOKit"
for ac_func in IORegisterForSystemPower
@ -4720,7 +4766,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by RT/TTS $as_me T.83.1, which was
This file was extended by RT/TTS $as_me T.83.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@ -4782,7 +4828,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
RT/TTS config.status T.83.1
RT/TTS config.status T.83.2
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

View file

@ -1,5 +1,5 @@
AC_PREREQ([2.69])
AC_INIT([RT/TTS], [T.83.1], [felicity@loreley.flyingparchment.org.uk])
AC_INIT([RT/TTS], [T.83.2], [felicity@loreley.flyingparchment.org.uk])
AC_CONFIG_SRCDIR([tts.c])
AC_CONFIG_HEADERS([config.h])
@ -14,6 +14,8 @@ LIBS="$oLIBS"
AC_CHECK_HEADERS([IOKit/pwr_mgt/IOPMLib.h])
AC_CHECK_LIB(m, round)
oLDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -framework CoreFoundation -framework IOKit"
AC_CHECK_FUNCS([IORegisterForSystemPower], [], [LDFLAGS="$oLDFLAGS"])