diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-09-13 17:27:53 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-09-13 17:27:53 +0300 |
commit | 99290f5ca37cb905f7f1dab9be416b2e2057d243 (patch) | |
tree | b8b337622f6f06293fed652cf93e39ab67a60a75 /configure.ac | |
parent | c2db2b9ff8465cb5044e6f22beb229336479be57 (diff) | |
download | egawk-99290f5ca37cb905f7f1dab9be416b2e2057d243.tar.gz egawk-99290f5ca37cb905f7f1dab9be416b2e2057d243.tar.bz2 egawk-99290f5ca37cb905f7f1dab9be416b2e2057d243.zip |
z/OS changes from Dave Pitts and Arnold.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index bb81f800..575b3da3 100644 --- a/configure.ac +++ b/configure.ac @@ -285,12 +285,17 @@ AC_FUNC_MBRTOWC dnl check for dynamic linking dnl This is known to be very primitive AC_CHECK_HEADER(dlfcn.h, - [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible]) - + [ # Check this separately. Some systems have dlopen # in libc. Notably freebsd and cygwin. # HP-NSK has it in zrldsrl - AC_SEARCH_LIBS(dlopen, dl zrldsrl) + AC_SEARCH_LIBS(dlopen, dl zrldsrl, gawk_have_dlopen=yes, gawk_have_dlopen=no) + # Only do DYNAMIC if we have the lip. z/OS (some versions) have + # the header but not the lib, apparently + if test "$gawk_have_dlopen" = yes + then + AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible]) + fi ]) dnl check for how to use getpgrp |