diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-24 15:19:37 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-24 15:19:37 +0000 |
commit | 51ebb9cb3b77f55e8f5b41f7a2dc12ca3d24f8a1 (patch) | |
tree | f4051e33af6f6489005e2a47fc5a6fda891ea8bb /Build/source/texk/xdvik/m4/xdvi-cc-concat.m4 | |
parent | 481a11df4cbb82f94470352ea87dcc76d6ca19bd (diff) |
new build system: towards completion
git-svn-id: svn://tug.org/texlive/trunk@12813 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/m4/xdvi-cc-concat.m4')
-rw-r--r-- | Build/source/texk/xdvik/m4/xdvi-cc-concat.m4 | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/Build/source/texk/xdvik/m4/xdvi-cc-concat.m4 b/Build/source/texk/xdvik/m4/xdvi-cc-concat.m4 index a37cbb2eb98..27d203dcab3 100644 --- a/Build/source/texk/xdvik/m4/xdvi-cc-concat.m4 +++ b/Build/source/texk/xdvik/m4/xdvi-cc-concat.m4 @@ -1,13 +1,21 @@ -dnl ### Check for whether the C compiler does string concatenation +# Autoconf macros for xdvik. +# Copyright (C) 1999 - 2009 Paul Vojta <xdvi-core@lists.sourceforge.net> +# +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. +# XDVI_CC_CONCAT +# -------------- +# Check whether the C compiler does string concatenation. AC_DEFUN([XDVI_CC_CONCAT], -[AC_CACHE_CHECK([whether C compiler supports string concatenation], xdvi_cv_cc_concat, -[AC_TRY_COMPILE( -[#include <stdio.h> -], [puts("Testing" " string" " concatenation"); -], [xdvi_cv_cc_concat=yes], [xdvi_cv_cc_concat=no])]) -if test $xdvi_cv_cc_concat = yes; then +[AC_CACHE_CHECK([whether C compiler supports string concatenation], + [xdvi_cv_cc_concat], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], + [[puts("Testing" " string" " concatenation");]])], + [xdvi_cv_cc_concat=yes], + [xdvi_cv_cc_concat=no])]) +if test "x$xdvi_cv_cc_concat" = xyes; then AC_DEFINE([HAVE_CC_CONCAT], 1, [Define if your C compiler can do string concatenation]) -fi]) - - +fi +]) # XDVI_CC_CONCAT |