summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2014-11-26 20:42:14 +0000
committerGary V. Vaughan <gary@gnu.org>2014-11-26 20:42:14 +0000
commit64a09a29e335b68d1996d36c95cd95a1f85b2bcf (patch)
tree5b9a075ae687778efb4e85694cb72902587b3f94
parente3740596954495555727057bd0486241cefdd4a4 (diff)
downloadm4-64a09a29e335b68d1996d36c95cd95a1f85b2bcf.tar.gz
modules: only load modules with system module file extension.
* m4/path.c (m4_load_filename): Compare with LT_MODULE_EXT instead of hardcoded '.so'. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
-rw-r--r--m4/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/path.c b/m4/path.c
index ca5e261c..8f577268 100644
--- a/m4/path.c
+++ b/m4/path.c
@@ -337,7 +337,7 @@ m4_load_filename (m4 *context, const m4_call_info *caller,
if (!m4_get_posixly_correct_opt (context)
&& suffix
- && STREQ (suffix, ".so"))
+ && STREQ (suffix, LT_MODULE_EXT))
{
m4_module_load (context, filename, obs);
}