/[autoconf]/autoconf/lib/autoconf/lang.m4
ViewVC logotype

Diff of /autoconf/lib/autoconf/lang.m4

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

revision 1.157 by akim, Fri Sep 13 07:18:15 2002 UTC revision 1.158 by akim, Mon Sep 16 08:38:46 2002 UTC
# Line 426  AC_DEFUN([AC_OBJEXT],   []) Line 426  AC_DEFUN([AC_OBJEXT],   [])
426  # _AC_COMPILER_EXEEXT_DEFAULT  # _AC_COMPILER_EXEEXT_DEFAULT
427  # ---------------------------  # ---------------------------
428  # Check for the extension used for the default name for executables.  # Check for the extension used for the default name for executables.
429    #
430    # We do this in order to find out what is the extension we must for
431    # compiling executables (see _AC_COMPILER_EXEEXT's comments).
432    #
433  # Beware of `expr' that may return `0' or `'.  Since this macro is  # Beware of `expr' that may return `0' or `'.  Since this macro is
434  # the first one in touch with the compiler, it should also check that  # the first one in touch with the compiler, it should also check that
435  # it compiles properly.  # it compiles properly.
# Line 447  AS_IF([AC_TRY_EVAL(ac_link_default)], Line 451  AS_IF([AC_TRY_EVAL(ac_link_default)],
451  # Be careful to initialize this variable, since it used to be cached.  # Be careful to initialize this variable, since it used to be cached.
452  # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.  # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
453  ac_cv_exeext=  ac_cv_exeext=
454  for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do  # b.out is created by i960 compilers.
455    for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
456    do
457    test -f "$ac_file" || continue    test -f "$ac_file" || continue
458    case $ac_file in    case $ac_file in
459      _AC_COMPILER_EXEEXT_REJECT ) ;;      _AC_COMPILER_EXEEXT_REJECT )
460      a.out ) # We found the default executable, but exeext='' is most          ;;
461              # certainly right.      conftest.$ac_ext )
462              break;;          # This is the source file.
463      *.* ) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`          ;;
464            # FIXME: I believe we export ac_cv_exeext for Libtool --akim.      [[ab]].out )
465            export ac_cv_exeext          # We found the default executable, but exeext='' is most
466            break;;          # certainly right.
467      * ) break;;          break;;
468        *.* )
469            ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
470            # FIXME: I believe we export ac_cv_exeext for Libtool,
471            # but it would be cool to find out if it's true.  Does anybody
472            # maintain Libtool? --akim.
473            export ac_cv_exeext
474            break;;
475        * )
476            break;;
477    esac    esac
478  done],  done],
479        [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD        [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
# Line 546  AC_MSG_RESULT([$ac_cv_exeext]) Line 561  AC_MSG_RESULT([$ac_cv_exeext])
561  m4_define([_AC_COMPILER_EXEEXT],  m4_define([_AC_COMPILER_EXEEXT],
562  [AC_LANG_CONFTEST([AC_LANG_PROGRAM()])  [AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
563  ac_clean_files_save=$ac_clean_files  ac_clean_files_save=$ac_clean_files
564  ac_clean_files="$ac_clean_files a.out a.exe"  ac_clean_files="$ac_clean_files a.out a.exe b.out"
565  _AC_COMPILER_EXEEXT_DEFAULT  _AC_COMPILER_EXEEXT_DEFAULT
566  _AC_COMPILER_EXEEXT_WORKS  _AC_COMPILER_EXEEXT_WORKS
567  rm -f a.out a.exe conftest$ac_cv_exeext  rm -f a.out a.exe conftest$ac_cv_exeext b.out
568  ac_clean_files=$ac_clean_files_save  ac_clean_files=$ac_clean_files_save
569  _AC_COMPILER_EXEEXT_CROSS  _AC_COMPILER_EXEEXT_CROSS
570  _AC_COMPILER_EXEEXT_O  _AC_COMPILER_EXEEXT_O

Legend:
Removed from v.1.157  
changed lines
  Added in v.1.158

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