Re: [[email protected]: problem with hdup 2.0.8-1]

Adam Piatyszek <[email protected]> Thu, 30 Jun 2005 13:44:21 +0200
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> > Which looks okay, but requires the --sysconfdir switch. Any ideas how
> > to make the plain configure work correctly?

I think that this problem could be solved by not defining the ETCFILE in
hdup.h.in, but instead setting it in src/Makefile.am in INCLUDES or
better in AM_CPPFLAGS:

hdup_sysconfdir	=3D $(sysconfdir)/hdup/hdup.conf
AM_CPPFLAGS =3D -DETCFILE=3D"\"$(hdup_sysconfdir)/\""

However, as far as I remember, you don't use automake (Makefile.am) in
your project. Maybe it's time to start using it ;-)

But, I think that in your project should work this patch:

Index: src/Makefile.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- src/Makefile.in     (wersja 103)
+++ src/Makefile.in     (kopia robocza)
@@ -16,7 +16,11 @@
 exec_prefix =3D @exec_prefix@
 sbindir =3D @sbindir@
 mandir =3D @mandir@
-sysconfdir =3D @prefix@/etc
+sysconfdir =3D @sysconfdir@
+
+hdup_config =3D $(sysconfdir)/hdup/hdup.conf
+CPPFLAGS =3D -DETCFILE=3D\"$(hdup_config)\"
+
 ######################################
 ######################################
 .PHONY:        clean install all uninstall

You have to check if it is OK, because I haven't time to do it ;)

Kind regards,

/Adam


--=20
-=3D#=3D-  Adam Pi=B1tyszek - "ediap"    -=3D#=3D-  Liunx ID: #204648      =
   -=3D#=3D-
-=3D#=3D-  ediap (at) et.put.poznan.pl -=3D#=3D-  JID: ediap (at) chrome.pl=
 -=3D#=3D-
-=3D#=3D-  http://ediap.prv.pl/        -=3D#=3D-  Gadu-Gadu: 1157376       =
 -=3D#=3D-
-=3D#=3D-  PGP key ID: 0x341E22F0      -=3D#=3D-  ICQ: 3303291             =
 -=3D#=3D-

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCw9sV2LdbWzQeIvARAmqYAKDiRmGMPH8JErh7Fq0vbjFEPB2TYQCgtyan
blJzqFVD3mzSQF6OWnLP/0Q=
=zmNw
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--