Skip to content

Commit 3f5d3ce

Browse files
committed
Cope with gcc that outputs a multiline version string, per Trond.
1 parent 47ccf37 commit 3f5d3ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ else
14811481
if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
14821482
for file in conftest.*; do
14831483
case $file in
1484-
*.c | *.C | *.o | *.obj) ;;
1484+
*.c | *.o | *.obj) ;;
14851485
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
14861486
esac
14871487
done
@@ -1629,7 +1629,7 @@ fi
16291629

16301630
# Create compiler version string
16311631
if test x"$GCC" = x"yes" ; then
1632-
cc_string="GCC `${CC} --version`"
1632+
cc_string="GCC `${CC} --version | head -1`"
16331633
else
16341634
cc_string=$CC
16351635
fi

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ AC_SUBST(GCC)
297297

298298
# Create compiler version string
299299
if test x"$GCC" = x"yes" ; then
300-
cc_string="GCC `${CC} --version`"
300+
cc_string="GCC `${CC} --version | head -1`"
301301
else
302302
cc_string=$CC
303303
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy