Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoconf failure--circular dependency



Hello,

I am working on an open source port of a utility of ours that in Mac OS X
10.1.5 I was able to use autoconf to create a configure file and compile our
source (using gnumake). However, now that I am using Mac OS X 10.3.2, I
cannot get autoconf to generate the configure file successfully. It does
create the configure file, but make fails. Here are the details:

<username>$ aclocal
<username>$ autoconf
configure.in:5: error: m4_require: circular dependency of
AC_LANG_COMPILER(C)
configure.in:5: AC_LANG_COMPILER(C) is required by...
autoconf/lang.m4:288: AC_LANG_COMPILER_REQUIRE is expanded from...
autoconf/general.m4:2194: AC_COMPILE_IFELSE is expanded from...
autoconf/headers.m4:91: AC_CHECK_HEADER is expanded from...
autoconf/c.m4:471: AC_PROG_CC is expanded from...
configure.in:5: AC_PROG_CC is required by...
autoconf/c.m4:408: AC_LANG_COMPILER(C) is expanded from...
configure.in:5: AC_LANG_COMPILER(C) is required by...
autoconf/lang.m4:288: AC_LANG_COMPILER_REQUIRE is expanded from...
autoconf/general.m4:2233: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1824: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1833: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:5: the top level
autom4te: /usr/bin/gm4 failed with exit status: 1


configure.in is the following:
-----
dnl Process this file with autoconf to produce a configure script.
AC_INIT(commandline.cpp)
AM_CONFIG_HEADER(config.h)
AC_CHECK_HEADER(pthread.h,
AC_CHECK_LIB(pthread,pthread_create))
AM_INIT_AUTOMAKE(flashwiz, 1.1.0)
AC_PROG_CXX
AC_OUTPUT(Makefile)
-----

I have tried changing the order of some of these lines, but the error is
always the same.


Running 'make' yields the following which is what originally sent me
searching on the web for what could be wrong. I found a post by Tom Tromley
who said to run aclocal and autoconf first before running make which then
led to the above problem:
Makefile:217: *** missing separator. Stop.


Here is an excerpt of Makefile:
-----
.
.
.
mostlyclean-compile:
-rm -f *.$(OBJEXT) core *.core

distclean-compile:
-rm -f *.tab.c

@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/commandline.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/country.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dbg.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/device.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/devid.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/flashinfo.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/flsh.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fpro.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gn.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hexf.Po@am__quote@
.
.
.
-----

By adding a tab to the beginning of these and other related lines I can get
farther in the makefile, but then it fails at a different point which
relates back to the original autoconf failure.


Can anyone give me any tips as to what I need to do to get autoconf to
create a Makefile successfully in Mac OS X 10.3.x (Darwin 7)?
Thanks,
Darrik
email@hidden
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.