Use "make" to create include/cdio/cdio_config.h rather than do it in the configure script.

This commit is contained in:
rocky
2011-07-08 21:40:07 -04:00
parent 5ac9df4db8
commit 15cd458874
2 changed files with 4 additions and 16 deletions

View File

@@ -666,19 +666,6 @@ AC_CONFIG_FILES([test/check_cue.sh], [chmod +x test/check_cue.sh])
AC_CONFIG_FILES([test/check_iso.sh], [chmod +x test/check_iso.sh]) AC_CONFIG_FILES([test/check_iso.sh], [chmod +x test/check_iso.sh])
AC_CONFIG_FILES([test/check_nrg.sh], [chmod +x test/check_nrg.sh]) AC_CONFIG_FILES([test/check_nrg.sh], [chmod +x test/check_nrg.sh])
AC_CONFIG_FILES([test/check_paranoia.sh], [chmod +x test/check_paranoia.sh]) AC_CONFIG_FILES([test/check_paranoia.sh], [chmod +x test/check_paranoia.sh])
AC_CONFIG_COMMANDS([default],[[
# Make sure scripts are executable
# This is a big hack, but I don't know any other way around it.
cat > include/cdio/cdio_config.h << EOF
/** \file cdio_config.h
* \brief configuration-time settings useful in compilation; a run-time
version of config.h
*/
EOF
cp config.h include/cdio/cdio_config.h
]],[[]])
AC_OUTPUT AC_OUTPUT
AC_MSG_NOTICE([ AC_MSG_NOTICE([

View File

@@ -1,6 +1,4 @@
# $Id: Makefile.am,v 1.34 2008/03/20 19:02:37 karl Exp $ # Copyright (C) 2003, 2004, 2006, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
#
# Copyright (C) 2003, 2004, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -24,6 +22,9 @@ if BUILD_CD_PARANOIA
paranoiaheaders = cdda.h cdtext.h paranoiaheaders = cdda.h cdtext.h
endif endif
cdio_config.h: $(top_srcdir)/config.h
cp $(top_srcdir)/config.h cdio_config.h
libcdioincludedir=$(includedir)/cdio libcdioincludedir=$(includedir)/cdio
libcdioinclude_HEADERS = \ libcdioinclude_HEADERS = \
audio.h \ audio.h \