From: SF/projects/mingw n. l. <min...@li...> - 2010-10-11 08:44:20
|
Bugs item #3079289, was opened at 2010-10-01 09:13 Message generated for change (Comment added) made by keithmarshall You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3079289&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MinGW Group: None >Status: Pending >Resolution: Invalid Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Missing m4 macros: AC_SUBST, AC_MSG_ERROR, PKG_CHECK_MODULES Initial Comment: When I try to compile gstreamer package gst-template I get the following errors: /*snip*/ configure.ac:31: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:52: error: possibly undefined macro: AC_SUBST autoreconf: /usr/bin/autoconf-2.67 failed with exit status: 1 autogen.sh failed If I add m4_pattern_allow([^dnl]) m4_pattern_allow([^AC_]) m4_pattern_allow([^AS_]) m4_pattern_allow([^m4]) to the beginning of configure.ac I get the following error: /*snip*/ ./configure: line 11204: syntax error near unexpected token `GST,' ./configure: line 11204: `PKG_CHECK_MODULES(GST,' configure failed I think these macros are missing from MinGW environment. ---------------------------------------------------------------------- >Comment By: Keith Marshall (keithmarshall) Date: 2010-10-11 08:44 Message: Using m4_pattern_allow, as you have, is almost certainly the wrong thing to do. The error you report is most often indicative of improper quoting within configure.ac, particularly when it refers to macros in the AC_ namespace; in the cases of both the AC_SUBST and AC_MSG_ERROR macros, which are standard autoconf macros, and *definitely* provided in the MinGW implementation, this is certainly the most likely cause of your error. In the case of PKG_CHECK_MODULES, we do not provide pkg-config, so you will need to furnish this independently; we have no plans to support it. However, the fragment of the error message which you do show does provide evidence of improper quoting -- it should be 'PKG_CHECK_MODULES([GST],', and not simply 'PKG_CHECK_MODULES(GST,'. While this improper quoting may not seem significant in this particular case, you should develop the habit of always quoting correctly, to avoid errors such as you report when it becomes significant. Please refer to the autoconf manual for guidance. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3079289&group_id=2435 |