1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-09 14:17:10 +01:00

lib-src/portsmf/configure.ac: Fix line ending.

This commit is contained in:
benjamin.drung@gmail.com
2013-11-01 10:09:18 +00:00
parent 8408eaf52a
commit c9b7f23924

View File

@@ -1,136 +1,136 @@
dnl dnl
dnl portSMF configure.in script - version not using libtool dnl portSMF configure.in script - version not using libtool
dnl dnl
dnl Joshua Haberman dnl Joshua Haberman
dnl Dominic Mazzoni dnl Dominic Mazzoni
dnl Richard Ash dnl Richard Ash
dnl dnl
dnl dnl
dnl Instructions: to create "configure" from "configure.in", run: dnl Instructions: to create "configure" from "configure.in", run:
dnl aclocal dnl aclocal
dnl autoconf dnl autoconf
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
dnl Require autoconf >= 2.61 dnl Require autoconf >= 2.61
AC_PREREQ(2.61) AC_PREREQ(2.61)
dnl Init autoconf and automake dnl Init autoconf and automake
AC_INIT([portSMF],[0.1]) AC_INIT([portSMF],[0.1])
dnl check that we have some source code dnl check that we have some source code
AC_CONFIG_SRCDIR([allegro.h]) AC_CONFIG_SRCDIR([allegro.h])
dnl keep autools files in a subdirectory dnl keep autools files in a subdirectory
AC_CONFIG_AUX_DIR(autotools) AC_CONFIG_AUX_DIR(autotools)
# which also contains a subdir containing macros # which also contains a subdir containing macros
AC_CONFIG_MACRO_DIR([autotools/m4]) AC_CONFIG_MACRO_DIR([autotools/m4])
dnl set up automake dnl set up automake
AM_INIT_AUTOMAKE([-Wall foreign]) AM_INIT_AUTOMAKE([-Wall foreign])
dnl Audacity policy: don't enable automatic rebuild of configure et al if dnl Audacity policy: don't enable automatic rebuild of configure et al if
dnl sources change dnl sources change
AM_MAINTAINER_MODE([enabled]) AM_MAINTAINER_MODE([enabled])
dnl ------------------------------------------------------- dnl -------------------------------------------------------
dnl Checks for programs. dnl Checks for programs.
dnl ------------------------------------------------------- dnl -------------------------------------------------------
dnl save $CFLAGS etc. since AC_PROG_CC likes to insert "-g -O2" dnl save $CFLAGS etc. since AC_PROG_CC likes to insert "-g -O2"
dnl if $CFLAGS is blank and it finds GCC dnl if $CFLAGS is blank and it finds GCC
cflags_save="$CFLAGS" cflags_save="$CFLAGS"
cppflags_save="$CPPFLAGS" cppflags_save="$CPPFLAGS"
cxxflags_save="$CXXFLAGS" cxxflags_save="$CXXFLAGS"
AC_PROG_CC AC_PROG_CC
AC_LANG([C++]) AC_LANG([C++])
AC_PROG_CXX AC_PROG_CXX
AC_PROG_CXXCPP AC_PROG_CXXCPP
CFLAGS="$cflags_save" CFLAGS="$cflags_save"
CPPFLAGS="$cppflags_save" CPPFLAGS="$cppflags_save"
CXXFLAGS="$cxxflags_save" CXXFLAGS="$cxxflags_save"
dnl we will need an "install" program to be available dnl we will need an "install" program to be available
AC_PROG_INSTALL AC_PROG_INSTALL
dnl and ranlib for static libraries dnl and ranlib for static libraries
AC_PROG_RANLIB AC_PROG_RANLIB
dnl Make the install prefix available to the program so that the pkg-config file dnl Make the install prefix available to the program so that the pkg-config file
dnl can be created correctly dnl can be created correctly
AC_PREFIX_DEFAULT(/usr/local) AC_PREFIX_DEFAULT(/usr/local)
if [[ $prefix = "NONE" ]] ; then if [[ $prefix = "NONE" ]] ; then
AC_DEFINE(INSTALL_PREFIX, "/usr/local", AC_DEFINE(INSTALL_PREFIX, "/usr/local",
[define as prefix where Audacity is installed]) [define as prefix where Audacity is installed])
else else
AC_DEFINE_UNQUOTED(INSTALL_PREFIX, "$prefix") AC_DEFINE_UNQUOTED(INSTALL_PREFIX, "$prefix")
fi fi
dnl Build Options dnl Build Options
AC_ARG_ENABLE(debug, AC_ARG_ENABLE(debug,
[AS_HELP_STRING([--enable-debug], [AS_HELP_STRING([--enable-debug],
[enable debug support [default=no]])], [enable debug support [default=no]])],
debug_preference="$enableval", debug_preference="$enableval",
debug_preference="no") debug_preference="no")
dnl ---------------------------------------------------- dnl ----------------------------------------------------
dnl If user asked for debug, put debug in compiler flags dnl If user asked for debug, put debug in compiler flags
dnl ---------------------------------------------------- dnl ----------------------------------------------------
if test x"$debug_preference" = "xyes" ; then if test x"$debug_preference" = "xyes" ; then
dnl we want debuging on dnl we want debuging on
AC_MSG_NOTICE([Adding -g for debugging to CFLAGS and CXXFLAGS ...]) AC_MSG_NOTICE([Adding -g for debugging to CFLAGS and CXXFLAGS ...])
CFLAGS="${CFLAGS} -g " CFLAGS="${CFLAGS} -g "
CXXFLAGS="${CXXFLAGS} -g " CXXFLAGS="${CXXFLAGS} -g "
fi fi
dnl -------------------------------------------------------------------------- dnl --------------------------------------------------------------------------
dnl We would like warnings enabled on the builds, but different compilers need dnl We would like warnings enabled on the builds, but different compilers need
dnl different options for these. This bit tries to work out what flags we dnl different options for these. This bit tries to work out what flags we
dnl should add to the compiler we are using. dnl should add to the compiler we are using.
dnl -------------------------------------------------------------------------- dnl --------------------------------------------------------------------------
dnl Strict prototypes flags for C (only C because doesn't work for C++) dnl Strict prototypes flags for C (only C because doesn't work for C++)
AX_CFLAGS_STRICT_PROTOTYPES(CFLAGS) AX_CFLAGS_STRICT_PROTOTYPES(CFLAGS)
dnl Sensible warnings for C dnl Sensible warnings for C
AX_CFLAGS_WARN_ALL(wall_flags) AX_CFLAGS_WARN_ALL(wall_flags)
CFLAGS="${CFLAGS} $wall_flags" CFLAGS="${CFLAGS} $wall_flags"
dnl try and use it on C++ as well dnl try and use it on C++ as well
AX_CXX_CHECK_FLAG([$wall_flags], [[int foo;]], [[foo = 1;]], cxx_does_wall="yes", cxx_does_wall="no") AX_CXX_CHECK_FLAG([$wall_flags], [[int foo;]], [[foo = 1;]], cxx_does_wall="yes", cxx_does_wall="no")
if test "x$cxx_does_wall" = "xyes" ; then if test "x$cxx_does_wall" = "xyes" ; then
dnl can use all warnings flag on the C++ compiler dnl can use all warnings flag on the C++ compiler
CXXFLAGS="${CXXFLAGS} $wall_flags" CXXFLAGS="${CXXFLAGS} $wall_flags"
fi fi
AX_CXXCPP_CHECK_FLAG([$wall_flags], [[int foo;]], [[foo = 1;]], cpp_does_wall="yes", cpp_does_wall="no") AX_CXXCPP_CHECK_FLAG([$wall_flags], [[int foo;]], [[foo = 1;]], cpp_does_wall="yes", cpp_does_wall="no")
if test "x$cpp_does_wall" = "xyes" ; then if test "x$cpp_does_wall" = "xyes" ; then
dnl can use all warnings flag on the C++ pre-processor dnl can use all warnings flag on the C++ pre-processor
CPPFLAGS="${CPPFLAGS} $wall_flags" CPPFLAGS="${CPPFLAGS} $wall_flags"
fi fi
dnl --- check for required libraries --- dnl --- check for required libraries ---
dnl system libraries dnl system libraries
AC_CHECK_FUNCS([strchr memmove]) AC_CHECK_FUNCS([strchr memmove])
AC_FUNC_MALLOC AC_FUNC_MALLOC
AC_HEADER_STDBOOL AC_HEADER_STDBOOL
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h]) AC_CHECK_HEADERS([stdlib.h string.h])
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
AC_TYPE_SIZE_T AC_TYPE_SIZE_T
AC_CONFIG_FILES([Makefile portSMF.pc portSMF-uninstalled.pc]) AC_CONFIG_FILES([Makefile portSMF.pc portSMF-uninstalled.pc])
AC_OUTPUT AC_OUTPUT
echo "" echo ""
echo "Run 'configure --help' for an explanation of the possible options," echo "Run 'configure --help' for an explanation of the possible options,"
echo "otherwise run 'make' to build portSMF." echo "otherwise run 'make' to build portSMF."
dnl Indentation settings for Vim and Emacs and unique identifier for Arch, a dnl Indentation settings for Vim and Emacs and unique identifier for Arch, a
dnl version control system. Please do not modify past this point. dnl version control system. Please do not modify past this point.
# Local Variables: # Local Variables:
# c-basic-offset: 3 # c-basic-offset: 3
# indent-tabs-mode: nil # indent-tabs-mode: nil
# End: # End:
# #
# vim: et sts=3 sw=3 # vim: et sts=3 sw=3