#! /bin/sh # # build-radpaths-h # Script to generate radpaths.h file. This is needed to # work around the weird way "autoconf" substitutes things # that are generated in anyway from a command line # argument having to do with a path (--prefix etc) # # Version: $Id: 506a21be67f420b7f4461657550eb57955b06630 $ # # Location of files. prefix=/usr exec_prefix=/usr sysconfdir=/etc localstatedir=/var libdir=/usr/lib64/freeradius bindir=/usr/bin sbindir=/usr/sbin mandir=/usr/share/man logdir=${localstatedir}/log/radius raddbdir=${sysconfdir}/raddb dictdir=${datarootdir}/freeradius radacctdir=${logdir}/radacct datarootdir=${prefix}/share cat < radpaths.h /* Automatically generated by "build-radpaths-h" */ #define LOGDIR "${localstatedir}/log/radius" #define LIBDIR "/usr/lib64/freeradius" #define RADDBDIR "${sysconfdir}/raddb" #define RUNDIR "/var/run" #define SBINDIR "/usr/sbin" #define RADIR "${logdir}/radacct" #define DICTDIR "${datarootdir}/freeradius" EOF