/[libtool]/libtool/libtool.m4
ViewVC logotype

Diff of /libtool/libtool.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.314.2.81 by rwild, Fri Apr 15 14:40:09 2005 UTC revision 1.314.2.82 by rwild, Mon Apr 18 17:07:46 2005 UTC
# Line 246  cc_basename=`$ECHO "X$cc_temp" | $Xsed - Line 246  cc_basename=`$ECHO "X$cc_temp" | $Xsed -
246  ])  ])
247    
248    
249    # _LT_COMPILER_BOILERPLATE
250    # ------------------------
251    # Check for compiler boilerplate output or warnings with
252    # the simple compiler test code.
253    AC_DEFUN([_LT_COMPILER_BOILERPLATE],
254    [ac_outfile=conftest.$ac_objext
255    printf "$lt_simple_compile_test_code" >conftest.$ac_ext
256    eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
257    _lt_compiler_boilerplate=`cat conftest.err`
258    $rm conftest*
259    ])# _LT_COMPILER_BOILERPLATE
260    
261    
262    # _LT_LINKER_BOILERPLATE
263    # ----------------------
264    # Check for linker boilerplate output or warnings with
265    # the simple link test code.
266    AC_DEFUN([_LT_LINKER_BOILERPLATE],
267    [ac_outfile=conftest.$ac_objext
268    printf "$lt_simple_link_test_code" >conftest.$ac_ext
269    eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
270    _lt_linker_boilerplate=`cat conftest.err`
271    $rm conftest*
272    ])# _LT_LINKER_BOILERPLATE
273    
274    
275  # _LT_AC_SYS_LIBPATH_AIX  # _LT_AC_SYS_LIBPATH_AIX
276  # ----------------------  # ----------------------
277  # Links a minimal program and checks the executable  # Links a minimal program and checks the executable
# Line 587  AC_CACHE_CHECK([$1], [$2], Line 613  AC_CACHE_CHECK([$1], [$2],
613     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
614     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
615       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
616       # So say no if there are warnings       # So say no if there are warnings other than the usual output.
617       if test ! -s conftest.err; then       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
618         $SED '/^$/d' conftest.err >conftest.er2
619         if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
620         $2=yes         $2=yes
621       fi       fi
622     fi     fi
# Line 619  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], Line 647  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
647       if test -s conftest.err; then       if test -s conftest.err; then
648         # Append any errors to the config.log.         # Append any errors to the config.log.
649         cat conftest.err 1>&AS_MESSAGE_LOG_FD         cat conftest.err 1>&AS_MESSAGE_LOG_FD
650           $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
651           $SED '/^$/d' conftest.err >conftest.er2
652           if diff conftest.exp conftest.er2 >/dev/null; then
653             $2=yes
654           fi
655       else       else
656         $2=yes         $2=yes
657       fi       fi
# Line 974  AC_CACHE_CHECK([if $compiler supports -c Line 1007  AC_CACHE_CHECK([if $compiler supports -c
1007     then     then
1008       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
1009       # So say no if there are warnings       # So say no if there are warnings
1010       if test ! -s out/conftest.err; then       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1011         $SED '/^$/d' out/conftest.err >out/conftest.er2
1012         if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1013         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1014       fi       fi
1015     fi     fi
# Line 2526  lt_simple_link_test_code='int main(){ret Line 2561  lt_simple_link_test_code='int main(){ret
2561    
2562  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
2563    
2564    # save warnings/boilerplate of simple test code
2565    _LT_COMPILER_BOILERPLATE
2566    _LT_LINKER_BOILERPLATE
2567    
2568  #  #
2569  # Check for any special shared library compilation flags.  # Check for any special shared library compilation flags.
2570  #  #
# Line 2662  lt_simple_link_test_code='int main(int, Line 2701  lt_simple_link_test_code='int main(int,
2701  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2702  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
2703    
2704    # save warnings/boilerplate of simple test code
2705    _LT_COMPILER_BOILERPLATE
2706    _LT_LINKER_BOILERPLATE
2707    
2708  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
2709  lt_save_CC=$CC  lt_save_CC=$CC
2710  lt_save_LD=$LD  lt_save_LD=$LD
# Line 3743  lt_simple_link_test_code="      program Line 3786  lt_simple_link_test_code="      program
3786  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3787  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
3788    
3789    # save warnings/boilerplate of simple test code
3790    _LT_COMPILER_BOILERPLATE
3791    _LT_LINKER_BOILERPLATE
3792    
3793  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
3794  lt_save_CC="$CC"  lt_save_CC="$CC"
3795  CC=${F77-"f77"}  CC=${F77-"f77"}
# Line 3823  lt_simple_link_test_code='public class c Line 3870  lt_simple_link_test_code='public class c
3870  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3871  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
3872    
3873    # save warnings/boilerplate of simple test code
3874    _LT_COMPILER_BOILERPLATE
3875    _LT_LINKER_BOILERPLATE
3876    
3877  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
3878  lt_save_CC="$CC"  lt_save_CC="$CC"
3879  CC=${GCJ-"gcj"}  CC=${GCJ-"gcj"}
# Line 3881  lt_simple_link_test_code="$lt_simple_com Line 3932  lt_simple_link_test_code="$lt_simple_com
3932  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3933  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
3934    
3935    # save warnings/boilerplate of simple test code
3936    _LT_COMPILER_BOILERPLATE
3937    _LT_LINKER_BOILERPLATE
3938    
3939  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
3940  lt_save_CC="$CC"  lt_save_CC="$CC"
3941  CC=${RC-"windres"}  CC=${RC-"windres"}

Legend:
Removed from v.1.314.2.81  
changed lines
  Added in v.1.314.2.82

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26