[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    generating and running a configure script in a subdirectory?
From:       jbaptiste () cable ! net ! co
Date:       2003-08-19 22:42:10
[Download RAW message or body]

Hi,

I'm the author of KNetworkConf, a tool to configure the network settings
under KDE. You can find more info in http://knetworkconf.sf.net

I'm using the Gnome System Tools (gst) Network backend to do the distro
abstraction stuff. These backends are a bunch of perl scripts that reads
the network info (among other things) and output it as xml, so a
frontend (like KNetworkConf) can read it and display it to the user. The
KNetworkConf version that uses this backend is ready now, but I'm having
some trouble in integrating this backend into KNetworkConf, so someone
that wants to use my app, doesn't have to have gst installed (or gnome
at all). I know very little about autoconf and friends, so everything
I'm trying to do here could be stupid.

The problem is the following: 

All of the scripts use a variable called somthing like ___scriptsdir___,
this variable has the path where the backends where installed. This
value is figured out by a configure.in file that is in the gst backend
subdirectory (the one I'm trying to integrate with KNetworkConf) and I
suppose it is replaced in the perl scripts somehow when configure is run. 
I added the line AC_CONFIG_SUBDIRS(backends) to my main
configure.in.in file. so the configure.in gets called when running
./configure (right???). When ./configure is run, when it tries to run
configure.in in the backends subdir, I get this error:

configuring in backemds 
running /bin/sh admin/configure  --prefix /usr/local/kde --srcdir=.
admin/configure: admin/configure: No such file or directory
configure: error: admin/configure failed for backends

Why it tries to look for a admin/configure file if in kde-common isn't
one (also I even don't have a admin dir in backends)?
What I'm doing wrong? or what I'm missing?

Or in what other way I can figure out the value of ___scriptsdir___ ?

The contents of backends/configure.in are:
AC_PREREQ(2.52)
AC_INIT(setup-tools-backends,0.26.1,
http://bugzilla.gnome.org/enter_bug.cgi?product=GNOME%20System%20Tools)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AM_PROG_LIBTOOL
AC_HEADER_STDC

if test "x${prefix}" = "xNONE"; then
  scriptsdir="${ac_default_prefix}/share/knetworkconf/backends"
else
  scriptsdir="${prefix}/share/knetworkconf/backends"
fi

AC_SUBST(scriptsdir)

AC_OUTPUT([
Makefile
])


echo "

Configuration (BACKENDS):

	The backends will be installed in : ${scriptsdir}
"

The contents of backends/Makefile.am are.
SUBDIRS = files

BACKENDSBODY = \
	network-conf.in \

PERLBODY = \
	debug.pl.in     \
	file.pl.in      \
	filesys.pl.in   \
	general.pl.in   \
	gettext.pl.in   \
	network.pl.in   \
	parse.pl.in     \
	platform.pl.in  \
	print.pl.in     \
	replace.pl.in   \
	report.pl.in    \
	service.pl.in   \
	service-list.pl.in	\
	tokenizer.pl.in \
	util.pl.in      \
	xml.pl.in

perl_libs = $(PERLBODY:.pl.in=.pl)

backends = $(BACKENDSBODY:.in=)

scripts_SCRIPTS = $(backends) $(perl_libs) guess_system.sh type1inst

EXTRA_DIST = \
	$(PERLBODY) \
	$(BACKENDSBODY) \
	guess_system.sh \
	type1inst		 \
	README \
	AUTHORS \
	NEWS


Thanks,

--
Juan Luis Baptiste
http://www.merlinux.org
http://knetworkconf.sf.net

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic