diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-06-22 22:50:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-06-22 22:50:22 +0000 |
commit | 093dbc3e96351c886849c4538d5e972f309c96a6 (patch) | |
tree | 819c994f60cdf8a19f74bcf47de2522565e4ca97 /binutils/dllwrap.c | |
parent | 5bdbb41e6aa9b26eb8758d70c72163a366801be5 (diff) | |
download | binutils-redhat-093dbc3e96351c886849c4538d5e972f309c96a6.tar.gz |
1999-06-23 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (HAVE_EXECUTABLE_SUFFIX): Define.
* dlltool.c (look_for_prog): Use HAVE_EXECUTABLE_SUFFIX.
* dllwrap.c (look_for_prog): Likewise.
* resrc.c (look_for_default): Likewise.
* configure, config.in: Rebuild.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r-- | binutils/dllwrap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c index 235b5dad5c..84606fb2b8 100644 --- a/binutils/dllwrap.c +++ b/binutils/dllwrap.c @@ -178,7 +178,7 @@ inform (message, va_alist) /* Look for the program formed by concatenating PROG_NAME and the string running from PREFIX to END_PREFIX. If the concatenated string contains a '/', try appending EXECUTABLE_SUFFIX if it is - defined. */ + appropriate. */ static char * look_for_prog (prog_name, prefix, end_prefix) @@ -191,7 +191,7 @@ look_for_prog (prog_name, prefix, end_prefix) cmd = xmalloc (strlen (prefix) + strlen (prog_name) -#ifdef EXECUTABLE_SUFFIX +#ifdef HAVE_EXECUTABLE_SUFFIX + strlen (EXECUTABLE_SUFFIX) #endif + 10); @@ -204,7 +204,7 @@ look_for_prog (prog_name, prefix, end_prefix) int found; found = (stat (cmd, &s) == 0 -#ifdef EXECUTABLE_SUFFIX +#ifdef HAVE_EXECUTABLE_SUFFIX || stat (strcat (cmd, EXECUTABLE_SUFFIX), &s) == 0 #endif ); |