From: Corinna Vinschen Date: Mon, 10 Jul 2000 06:43:34 +0000 (+0000) Subject: * ltconfig.in: Check for host_os beeing one of `cygwin', `mingw' X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6201ca3da81d0fc260a9dc6a21548ba27a4839de;p=thirdparty%2Flibtool.git * ltconfig.in: Check for host_os beeing one of `cygwin', `mingw' or `os2'. Force ac_cv_exeext to be ".exe" in that case, like autoconf does. --- diff --git a/ChangeLog b/ChangeLog index be5b7efbe..29a90b9a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-07-10 Corinna Vinschen + + * ltconfig.in: Check for host_os beeing one of `cygwin', `mingw' + or `os2'. Force ac_cv_exeext to be ".exe" in that case, like + autoconf does. + 2000-07-10 Alexandre Oliva * ltconfig.in (dynamic_linker, linux, powerpc): Do not disable diff --git a/ltconfig.in b/ltconfig.in index fb554dfbb..9ecea198d 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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:@LINENO@: checking for executable suffix" >& 5 - if { (eval echo $progname:@LINENO@: \"$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:@LINENO@: checking for executable suffix" >& 5 + if { (eval echo $progname:@LINENO@: \"$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=""