autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wierd problem


From: Jonas Geiregat
Subject: Re: wierd problem
Date: Tue, 25 Jan 2005 17:15:37 +0100

On Tue, 25 Jan 2005 16:19:33 +0100, Stepan Kasal <address@hidden> wrote:
> Hi,
> 
> On Tue, Jan 25, 2005 at 03:18:30PM +0100, Jonas Geiregat wrote:
> > I've tried the following code with autoconf version 2.13 and 2.59
> 
> please use 2.59, which is the current version.
> 
> > AC_INIT ([main.c])
> ...
> > ./configure: line 523: main.c: command not found
> 
> Use:
> 
> AC_INIT([main.c])
> 
> (no space), so that m4 understands it as a parameter.

Thanks that fixed it.
I have an other problem not really autoconf related more automake I
think but far from sure.

output after running make:
source='main.c' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=none /bin/sh ./depcomp \
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"wewa\"
-DVERSION=\"0.0.1\"  -I. -I. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/freetype2/config
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gconf/2 -I/usr/include/orbit-2.0
-I/usr/include/libglade-2.0 -I/usr/include/libxml2  
-I/usr/lib/mozilla/include/gtkembedmoz
-I/usr/lib/mozilla/include/xpcom -I/usr/lib/mozilla/include/string
-I/usr/lib/mozilla/include/nspr      -g -O2 -c main.c
gcc  -g -O2   -o wewa  main.o -Wl,--export-dynamic -pthread -lgconf-2
-lORBit-2 -lgthread-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
-L/usr/lib/mozilla -lgtkembedmoz -lxpcom -lplds4 -lplc4 -lnspr4
-lpthread -ldl
gcc: main.o: No such file or directory
make: *** [wewa] Error 1

When I copy past the first gcc command it creates the main.o file why
not when using make ?

Makefile.am contents:

INCLUDES =      \
        $(WEWA_CFLAGS) \
        $(MOZILLA_COMPONENT_CFLAGS)

bin_PROGRAMS =  \
        wewa

wewa_SOURCES =  \
        main.c  \
        wewatypes.h

wewa_LDADD =    \
        $(WEWA_LIBS) \
        $(MOZILLA_COMPONENT_LIBS)

configure.in contents:
AC_INIT([main.c])

AM_INIT_AUTOMAKE([wewa], [0.0.1])

AC_PROG_CC
AC_PROG_INSTALL

dnl ================================== Requirements
===================================

LIBGLADE_REQUIRED=2.3.6
GTK_REQUIRED=2.6.1
GCONF_REQUIRED=2.5.90

dnl 
===================================================================================

WEWA_MODULES="gtk+-2.0 >= $GTK_REQUIRED gconf-2.0 >= $GCONF_REQUIRED
libglade-2.0 >= $LIBGLADE_REQUIRED"

PKG_CHECK_MODULES(WEWA, $WEWA_MODULES)
PKG_CHECK_MODULES(MOZILLA_COMPONENT, mozilla-gtkmozembed >= 1.7)

AC_SUBST(MOZILLA_COMPONENT_CFLAGS)
AC_SUBST(MOZILLA_COMPONENT_LIBS)

AC_OUTPUT([Makefile])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]