Skip to content

Commit

Permalink
resolve install paths in configure output, update configure script
Browse files Browse the repository at this point in the history
  • Loading branch information
vergoh committed Jan 22, 2021
1 parent 10279cb commit 7e3795e
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 16 deletions.
50 changes: 38 additions & 12 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -7245,6 +7245,26 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
# Resolve install paths for output.
msg_bindir=$bindir
while expr match "${msg_bindir}" '^.*\$.*$' 1>/dev/null;
do
msg_bindir="$(eval echo ${msg_bindir})"
done
msg_sbindir=$sbindir
while expr match "${msg_sbindir}" '^.*\$.*$' 1>/dev/null;
do
msg_sbindir="$(eval echo ${msg_sbindir})"
done
msg_sysconfdir=$sysconfdir
while expr match "${msg_sysconfdir}" '^.*\$.*$' 1>/dev/null;
do
msg_sysconfdir="$(eval echo ${msg_sysconfdir})"
done
# Output configuration.
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: ============================================== " >&5
Expand All @@ -7257,29 +7277,35 @@ $as_echo "$as_me: host: $host " >&6;}
$as_echo "$as_me: build: $build " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: prefix: $prefix " >&5
$as_echo "$as_me: prefix: $prefix " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: sysconfdir: $sysconfdir " >&5
$as_echo "$as_me: sysconfdir: $sysconfdir " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: prefix: $prefix " >&5
$as_echo "$as_me: prefix: $prefix " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: exec_prefix: $exec_prefix " >&5
$as_echo "$as_me: exec_prefix: $exec_prefix " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: bindir: $bindir " >&5
$as_echo "$as_me: bindir: $bindir " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: sbindir: $sbindir " >&5
$as_echo "$as_me: sbindir: $sbindir " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: sysconfdir: $sysconfdir " >&5
$as_echo "$as_me: sysconfdir: $sysconfdir " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: Install paths " >&5
$as_echo "$as_me: Install paths " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: vnstat: $prefix/bin/vnstat " >&5
$as_echo "$as_me: vnstat: $prefix/bin/vnstat " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: vnstat: $msg_bindir/vnstat " >&5
$as_echo "$as_me: vnstat: $msg_bindir/vnstat " >&6;}
if test -z "$HAVE_LIBGD_TRUE"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: vnstati: $prefix/bin/vnstati " >&5
$as_echo "$as_me: vnstati: $prefix/bin/vnstati " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: vnstati: $msg_bindir/vnstati " >&5
$as_echo "$as_me: vnstati: $msg_bindir/vnstati " >&6;}
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: vnstatd: $prefix/sbin/vnstatd " >&5
$as_echo "$as_me: vnstatd: $prefix/sbin/vnstatd " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: config: $sysconfdir/vnstat.conf " >&5
$as_echo "$as_me: config: $sysconfdir/vnstat.conf " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: vnstatd: $msg_sbindir/vnstatd " >&5
$as_echo "$as_me: vnstatd: $msg_sbindir/vnstatd " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: config: $msg_sysconfdir/vnstat.conf " >&5
$as_echo "$as_me: config: $msg_sysconfdir/vnstat.conf " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
if test -z "$HAVE_CHECK_TRUE"; then :
Expand Down
28 changes: 24 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ AC_CHECK_FUNCS([dup2 localtime_r memset mkdir pow rmdir setlocale strcasecmp str
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

# Resolve install paths for output.
msg_bindir=$bindir
while expr match "${msg_bindir}" '^.*\$.*$' 1>/dev/null;
do
msg_bindir="$(eval echo ${msg_bindir})"
done

msg_sbindir=$sbindir
while expr match "${msg_sbindir}" '^.*\$.*$' 1>/dev/null;
do
msg_sbindir="$(eval echo ${msg_sbindir})"
done

msg_sysconfdir=$sysconfdir
while expr match "${msg_sysconfdir}" '^.*\$.*$' 1>/dev/null;
do
msg_sysconfdir="$(eval echo ${msg_sysconfdir})"
done

# Output configuration.
AC_MSG_NOTICE()
AC_MSG_NOTICE([ ============================================== ])
AC_MSG_NOTICE()
Expand All @@ -87,13 +107,13 @@ AC_MSG_NOTICE([ sysconfdir: $sysconfdir ])
AC_MSG_NOTICE()
AC_MSG_NOTICE([ Install paths ])
AC_MSG_NOTICE()
AC_MSG_NOTICE([ vnstat: $bindir/vnstat ])
AC_MSG_NOTICE([ vnstat: $msg_bindir/vnstat ])

AM_COND_IF([HAVE_LIBGD], [
AC_MSG_NOTICE([ vnstati: $bindir/vnstati ])])
AC_MSG_NOTICE([ vnstati: $msg_bindir/vnstati ])])

AC_MSG_NOTICE([ vnstatd: $sbindir/vnstatd ])
AC_MSG_NOTICE([ config: $sysconfdir/vnstat.conf ])
AC_MSG_NOTICE([ vnstatd: $msg_sbindir/vnstatd ])
AC_MSG_NOTICE([ config: $msg_sysconfdir/vnstat.conf ])
AC_MSG_NOTICE()
AM_COND_IF([HAVE_CHECK], [
AC_MSG_NOTICE([ Tests: available ])], [
Expand Down

0 comments on commit 7e3795e

Please sign in to comment.