func_usage_message
$ECHO "$long_help_message
+If a TAG is supplied, it must use one of the tag names below:
+
+ Tag Name Language Name
+ CC C
+ CXX C++
+ GCJ Java
+ F77 Fortran 77
+ FC Fortran
+ GO Go
+ RC Windows Resource
+
+If you do not see a tag name associated with your programming language, then
+you are using a compiler that $progname does not support.
+
MODE must be one of the following:
clean remove files from the build directory
# was found and let the user know that the "--tag" command
# line option must be used.
if test -z "$tagname"; then
- func_echo "unable to infer tagged configuration"
- func_fatal_error "specify a tag with '--tag'"
+ func_echo "unable to infer tagged configuration with compiler."
+ func_echo "Possible use of unsupported compiler."
+ func_fatal_error "specify a tag with '--tag'. For more information, try '$progname --help'."
# else
# func_verbose "using $tagname tagged configuration"
fi
[], [ignore], [ignore])
AT_CLEANUP
+
+# Unsupported compiler check
+AT_SETUP([Unsupported compiler inferred tag check])
+AT_KEYWORDS([libtool])
+
+AT_DATA([a.asm],
+[[section .text
+ global _start
+ _start:
+ mov eax,1
+]])
+
+AT_XFAIL_IF([:])
+AT_CHECK([$LIBTOOL --mode=compile nasm -felf64 a.asm],
+ [0], [ignore], [ignore])
+
+AT_CLEANUP