[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Running a shell command
From: |
Michael Talbot-Wilson |
Subject: |
Running a shell command |
Date: |
Sat, 13 Oct 2012 21:51:29 +0930 (CST) |
I'd like to do something like
AC_PATH_PROG([PGCONFIG],[pg_config]...
followed by employing the path PGCONFIG in a shell command and
assigning the value returned. If it was found, i.e. if there is a
pg_config on the system. Within configure.ac ...
PGLIBDIR=$($PGCONFIG --libdir)
or something, then
AC_SUBST([PGLIBDIR])
But that attempt substitutes a blank. Others like it no better.
I thought it was possible to execute shell commands in configure.ac
but a few hours searching the manual has got me nowhere.
Is such a thing possible? How?
- Running a shell command,
Michael Talbot-Wilson <=