Mercurial > hg > xemacs-beta
comparison configure @ 3773:5f25b1501bcd
[xemacs-hg @ 2007-01-01 10:03:52 by malcolmp]
Use 'grep -E' rather than egrep and 'grep -F' rather than fgrep.
author | malcolmp |
---|---|
date | Mon, 01 Jan 2007 10:04:13 +0000 |
parents | e1dc2edc2719 |
children | e58f4b9ab1ad |
comparison
equal
deleted
inserted
replaced
3772:30958064156d | 3773:5f25b1501bcd |
---|---|
21486 if test -f "$ac_dir/$ac_prog"; then | 21486 if test -f "$ac_dir/$ac_prog"; then |
21487 LTLD="$ac_dir/$ac_prog" | 21487 LTLD="$ac_dir/$ac_prog" |
21488 # Check to see if the program is GNU ld. I'd rather use --version, | 21488 # Check to see if the program is GNU ld. I'd rather use --version, |
21489 # but apparently some GNU ld's only accept -v. | 21489 # but apparently some GNU ld's only accept -v. |
21490 # Break only if it was the GNU/non-GNU ld that we prefer. | 21490 # Break only if it was the GNU/non-GNU ld that we prefer. |
21491 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 21491 if "$LTLD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then |
21492 xe_gnu_ld=yes | 21492 xe_gnu_ld=yes |
21493 else | 21493 else |
21494 xe_gnu_ld=no | 21494 xe_gnu_ld=no |
21495 fi | 21495 fi |
21496 fi | 21496 fi |
21518 | 21518 |
21519 # Check to see if it really is or isn't GNU ld. | 21519 # Check to see if it really is or isn't GNU ld. |
21520 echo "$as_me:$LINENO: checking if the linker is GNU ld" >&5 | 21520 echo "$as_me:$LINENO: checking if the linker is GNU ld" >&5 |
21521 echo $ECHO_N "checking if the linker is GNU ld... $ECHO_C" >&6 | 21521 echo $ECHO_N "checking if the linker is GNU ld... $ECHO_C" >&6 |
21522 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 21522 # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
21523 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 21523 if $LTLD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then |
21524 xe_gnu_ld=yes | 21524 xe_gnu_ld=yes |
21525 else | 21525 else |
21526 xe_gnu_ld=no | 21526 xe_gnu_ld=no |
21527 fi | 21527 fi |
21528 echo "$as_me:$LINENO: result: ${xe_gnu_ld}" >&5 | 21528 echo "$as_me:$LINENO: result: ${xe_gnu_ld}" >&5 |
21559 dll_ldflags=$LDFLAGS | 21559 dll_ldflags=$LDFLAGS |
21560 ld_shlibs=yes | 21560 ld_shlibs=yes |
21561 can_build_shared=yes | 21561 can_build_shared=yes |
21562 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then | 21562 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then |
21563 # See if GNU ld supports shared libraries. | 21563 # See if GNU ld supports shared libraries. |
21564 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | 21564 if $LTLD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then |
21565 dll_ld=$CC | 21565 dll_ld=$CC |
21566 dll_ldflags="-shared" | 21566 dll_ldflags="-shared" |
21567 ld_shlibs=yes | 21567 ld_shlibs=yes |
21568 else | 21568 else |
21569 ld_shlibs=no | 21569 ld_shlibs=no |