About popen()
Peter Dufault
dufault at hda.com
Wed Mar 2 09:17:06 UTC 2011
On Mar 2, 2011, at 4:09 , Till Straumann wrote:
> Another possibility would be a 'gnu configure' test which would fail
> to link and then e.g., undefine HAVE_POPEN in 'config.h'. E.g.,
> with autoconf:
>
> AC_CHECK_FUNC([popen], [AC_DEFINE([HAVE_POPEN],[1], [Define if popen
> exists])])
Yes, but the unfulfilled promise of POSIX is to be able to avoid that machinery, preferably at compile time.
Peter
-----------------
Peter Dufault
HD Associates, Inc. Software and System Engineering
More information about the users
mailing list