Mercurial > hg > xemacs-beta
comparison aclocal.m4 @ 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 | b145b32294ff |
children | aa5ed11f473b |
comparison
equal
deleted
inserted
replaced
3772:30958064156d | 3773:5f25b1501bcd |
---|---|
353 if test -f "$ac_dir/$ac_prog"; then | 353 if test -f "$ac_dir/$ac_prog"; then |
354 LTLD="$ac_dir/$ac_prog" | 354 LTLD="$ac_dir/$ac_prog" |
355 # Check to see if the program is GNU ld. I'd rather use --version, | 355 # Check to see if the program is GNU ld. I'd rather use --version, |
356 # but apparently some GNU ld's only accept -v. | 356 # but apparently some GNU ld's only accept -v. |
357 # Break only if it was the GNU/non-GNU ld that we prefer. | 357 # Break only if it was the GNU/non-GNU ld that we prefer. |
358 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 358 if "$LTLD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then |
359 xe_gnu_ld=yes | 359 xe_gnu_ld=yes |
360 else | 360 else |
361 xe_gnu_ld=no | 361 xe_gnu_ld=no |
362 fi | 362 fi |
363 fi | 363 fi |
383 ld_dynamic_link_flags= | 383 ld_dynamic_link_flags= |
384 | 384 |
385 # Check to see if it really is or isn't GNU ld. | 385 # Check to see if it really is or isn't GNU ld. |
386 AC_MSG_CHECKING([if the linker is GNU ld]) | 386 AC_MSG_CHECKING([if the linker is GNU ld]) |
387 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 387 # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
388 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 388 if $LTLD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then |
389 xe_gnu_ld=yes | 389 xe_gnu_ld=yes |
390 else | 390 else |
391 xe_gnu_ld=no | 391 xe_gnu_ld=no |
392 fi | 392 fi |
393 AC_MSG_RESULT([${xe_gnu_ld}]) | 393 AC_MSG_RESULT([${xe_gnu_ld}]) |
423 dll_ldflags=$LDFLAGS | 423 dll_ldflags=$LDFLAGS |
424 ld_shlibs=yes | 424 ld_shlibs=yes |
425 can_build_shared=yes | 425 can_build_shared=yes |
426 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then | 426 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then |
427 # See if GNU ld supports shared libraries. | 427 # See if GNU ld supports shared libraries. |
428 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | 428 if $LTLD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then |
429 dll_ld=$CC | 429 dll_ld=$CC |
430 dll_ldflags="-shared" | 430 dll_ldflags="-shared" |
431 ld_shlibs=yes | 431 ld_shlibs=yes |
432 else | 432 else |
433 ld_shlibs=no | 433 ld_shlibs=no |