summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/m4/xdvi-cc-concat.m4
blob: a37cbb2eb982af76ed80870221f061f9006888a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
dnl ### Check for 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_DEFINE([HAVE_CC_CONCAT], 1, [Define if your C compiler can do string concatenation])
fi])