Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-06-29 00:26:53 +0400
committerCorinna Vinschen <corinna@vinschen.de>2000-06-29 00:26:53 +0400
commitd3b715788a4d8e0902f294a8381004c5474a348f (patch)
tree51fb923273758022770742ac6636318e27d3ac48 /ltconfig
parentba2048d3ca39b29398f8c75e3ecec545f1d5ee13 (diff)
* ltconfig: Check for host_os beeing one of `cygwin', `mingw' or
`os2'. Force ac_cv_exeext to be ".exe" in that case.
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig47
1 files changed, 27 insertions, 20 deletions
diff --git a/ltconfig b/ltconfig
index e57dd5402..b5e54615f 100755
--- a/ltconfig
+++ b/ltconfig
@@ -623,26 +623,33 @@ echo $ac_n "checking for executable suffix... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- ac_cv_exeext="no"
- $rm conftest*
- echo 'main () { return 0; }' > conftest.c
- echo "$progname:629: checking for executable suffix" >& 5
- if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
- # Append any warnings to the config.log.
- cat conftest.err 1>&5
-
- for ac_file in conftest.*; do
- case $ac_file in
- *.c | *.err | *.$objext ) ;;
- *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
- esac
- done
- else
- cat conftest.err 1>&5
- echo "$progname: failed program was:" >&5
- cat conftest.c >&5
- fi
- $rm conftest*
+ case "$host_os" in
+ cygwin* | mingw* | os2*)
+ ac_cv_exeext=.exe
+ ;;
+ *)
+ ac_cv_exeext="no"
+ $rm conftest*
+ echo 'main () { return 0; }' > conftest.c
+ echo "$progname:634: checking for executable suffix" >& 5
+ if { (eval echo $progname:635: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
+ # Append any warnings to the config.log.
+ cat conftest.err 1>&5
+
+ for ac_file in conftest.*; do
+ case $ac_file in
+ *.c | *.err | *.$objext ) ;;
+ *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
+ esac
+ done
+ else
+ cat conftest.err 1>&5
+ echo "$progname: failed program was:" >&5
+ cat conftest.c >&5
+ fi
+ $rm conftest*
+ ;;
+ esac
fi
if test "X$ac_cv_exeext" = Xno; then
exeext=""