configure.in 27.2 KB
Newer Older
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
1 2 3 4 5 6 7 8 9 10
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)

AC_INIT([Xenomai],m4_normalize(m4_include([config/version])),xenomai-help@gna.org)

CONFIG_XENO_VERSION_MAJOR=`expr $PACKAGE_VERSION : '\([[0-9]]*\)'`
CONFIG_XENO_VERSION_MINOR=`expr $PACKAGE_VERSION : '[[0-9]]*\.\([[0-9]]*\)'`
CONFIG_XENO_REVISION_LEVEL=`expr $PACKAGE_VERSION : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
test "x$CONFIG_XENO_REVISION_LEVEL" = "x" && CONFIG_XENO_REVISION_LEVEL=0

11 12 13 14 15 16
if test "x$CFLAGS" = "x"; then
	XENO_EMPTY_CFLAGS=true
else
	XENO_EMPTY_CFLAGS=false
fi

17 18 19 20
if eval test $includedir = /usr/include; then
  AC_MSG_ERROR([Using /usr/include as includedir is not supported. Please change your --prefix or specify another --includedir])
fi

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
AC_CONFIG_HEADERS(src/include/xeno_config.h)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(src/skins/native/task.c)
AC_PREFIX_DEFAULT(/usr/xenomai)
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_PROG_INSTALL

AC_ARG_WITH(cc,
    AS_HELP_STRING([--with-cc=compiler],[use specific C compiler]),
    [
	case "$withval" in
	"" | y | ye | yes | n | no)
	    AC_MSG_ERROR([You must supply an argument to --with-cc.])
	  ;;
	esac
	CC="$withval"
    ])
AC_PROG_CC

41 42 43 44 45
# Do not let autoconf set the default value of CFLAGS
if $XENO_EMPTY_CFLAGS; then
	CFLAGS=""
fi

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
AC_PROG_CC_FOR_BUILD

AC_DEFINE_UNQUOTED(CONFIG_XENO_BUILD_STRING,"$build",[Build system alias])
XENO_BUILD_STRING="$build"
AC_DEFINE_UNQUOTED(CONFIG_XENO_HOST_STRING,"$host",[Host system alias])
XENO_HOST_STRING="$host"
AC_DEFINE_UNQUOTED(CONFIG_XENO_COMPILER,"`$CC -v 2>&1 | tail -n 1`",[Compiler])

AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2])
AM_MAINTAINER_MODE
AC_PROG_LIBTOOL
AM_PROG_AS
AM_PROG_LEX

AC_MSG_CHECKING([for target architecture])

Philippe Gerum's avatar
Philippe Gerum committed
62 63 64 65 66 67 68
if test x$host_alias = x; then
  build_for=$host
else
  build_for=$host_alias
fi

case "$build_for" in
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
69
 i*86*-*)
70
	XENO_TARGET_ARCH=x86
71
        XENO_LINUX_ARCH=i386
72
	XENO_LINUX_INSTALL_TARGET=install
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
73
        ;;
74
 ppc-*)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
75
	XENO_TARGET_ARCH=powerpc
76
        XENO_LINUX_ARCH=ppc
Philippe Gerum's avatar
Philippe Gerum committed
77
	XENO_LINUX_INSTALL_TARGET=install
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
78
        ;;
79
 powerpc-*|powerpc64-*|ppc64-*)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
80
	XENO_TARGET_ARCH=powerpc
81
        XENO_LINUX_ARCH=powerpc
Philippe Gerum's avatar
Philippe Gerum committed
82
	XENO_LINUX_INSTALL_TARGET=install
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
83 84 85
        ;;
 ia64-*)
	XENO_TARGET_ARCH=ia64
86
        XENO_LINUX_ARCH=ia64
87
	XENO_LINUX_INSTALL_TARGET=install
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
88
        ;;
89
 bfin-*|bfinnommu-*|blackfin-*)
90
	XENO_TARGET_ARCH=blackfin
91
        XENO_LINUX_ARCH=blackfin
92
	XENO_LINUX_INSTALL_TARGET=install
93
        ;;
94
 arm*-*)
95
 	XENO_TARGET_ARCH=arm
96
 	XENO_LINUX_ARCH=arm
97 98
	XENO_LINUX_INSTALL_TARGET=install_image
	XENO_LINUX_IMAGE=arch/arm/boot/zImage
99
	;;
Philippe Gerum's avatar
Philippe Gerum committed
100
 x86_64-*|amd64-*)
101
	XENO_TARGET_ARCH=x86
Philippe Gerum's avatar
Philippe Gerum committed
102 103 104
        XENO_LINUX_ARCH=x86_64
	XENO_LINUX_INSTALL_TARGET=install
        ;;
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
105 106
 *) echo ""
   echo "*******************************************"
Philippe Gerum's avatar
Philippe Gerum committed
107
   echo "Still unsupported target: $build_for -- Sorry."
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
108 109 110 111 112 113
   echo "*******************************************"
   echo ""
   exit 1;;
esac

AC_MSG_RESULT([$XENO_TARGET_ARCH])
114
AM_CONDITIONAL(XENO_LINUX_ARCH_I386,[test $XENO_LINUX_ARCH = i386])
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
115 116 117 118 119 120 121 122 123 124

dnl
dnl Parse options
dnl

dnl Debug build (default: off)

debug_symbols=
AC_MSG_CHECKING(for debug symbols)
AC_ARG_ENABLE(debug,
125
	AS_HELP_STRING([--enable-debug], [Enable debug support in nucleus and debug symbols in programs]),
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
	[case "$enableval" in
	y | yes) debug_symbols=y ;;
	*) unset debug_symbols ;;
	esac])
AC_MSG_RESULT(${debug_symbols:-no})

dnl SMP support (default: off)

CONFIG_SMP=
AC_MSG_CHECKING(for SMP support)
AC_ARG_ENABLE(smp,
	AS_HELP_STRING([--enable-smp], [Enable SMP support]),
	[case "$enableval" in
	y | yes) CONFIG_SMP=y ;;
	*) unset CONFIG_SMP ;;
	esac])
AC_MSG_RESULT(${CONFIG_SMP:-no})

Philippe Gerum's avatar
Philippe Gerum committed
144
dnl SEP (default: disabled) and TSC support for x86 (default: enabled)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
145 146

CONFIG_XENO_X86_SEP=
Philippe Gerum's avatar
Philippe Gerum committed
147
CONFIG_X86_TSC=y
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
148

149
if test $XENO_TARGET_ARCH = x86; then
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
  AC_MSG_CHECKING(for x86 SEP instructions in syscalls)
  AC_ARG_ENABLE(x86-sep,
	AS_HELP_STRING([--enable-x86-sep], [Enable x86 SEP instructions for issuing syscalls]),
	[case "$enableval" in
	y | yes) CONFIG_XENO_X86_SEP=y ;;
	*) unset CONFIG_XENO_X86_SEP ;;
	esac])
  AC_MSG_RESULT(${CONFIG_XENO_X86_SEP:-no})

  AC_MSG_CHECKING(for x86 TSC support)
  AC_ARG_ENABLE(x86-tsc,
	AS_HELP_STRING([--enable-x86-tsc], [Enable x86 TSC for timings]),
	[case "$enableval" in
	y | yes) CONFIG_X86_TSC=y ;;
	*) unset CONFIG_X86_TSC ;;
	esac])
  AC_MSG_RESULT(${CONFIG_X86_TSC:-no})
fi

169 170
dnl ARCH support for ARM (default: 4)

171
if test $XENO_TARGET_ARCH = arm ; then
172 173
  CONFIG_XENO_ARM_ARCH=4
  CONFIG_XENO_ARM_SA1100=
174
  CONFIX_XENO_ARM_EABI=
175 176 177 178 179 180 181 182

  unset CONFIG_XENO_ARM_SA1100
  unset tsc_type
  unset CONFIG_XENO_ARM_HW_DIRECT_TSC

  AC_MSG_CHECKING(for ARM machine)
  AC_ARG_ENABLE(arm-mach,
	AS_HELP_STRING([--enable-arm-mach], [Select for which machine we are
183
compiling. Valid machines are at91rm9200, at91sam926x, generic, imx, imx21, 
184
integrator, ixp4xx, mx2, mx3, pxa, pxa3xx, s3c2410, sa1100.]),
185
	[case "$enableval" in
186
	at91rm9200)   	arch=4
187
	        	tsc_type=__XN_TSC_TYPE_FREERUNNING_FAST_WRAP;;
188 189

	at91sam926x)   	arch=5
190
	        	tsc_type=__XN_TSC_TYPE_FREERUNNING_FAST_WRAP;;
191

192 193 194 195
	generic)	arch=4
			CONFIG_XENO_ARM_SA1100=y
			unset tsc_type;;

196 197 198 199 200 201 202 203
	imx)		arch=4
			tsc_type=__XN_TSC_TYPE_FREERUNNING;;

	imx21)		arch=5
			unset tsc_type;;

	integrator) 	arch=choose
			unset tsc_type;;
204
	
205
	ixp4xx)		arch=5
206 207
	      		tsc_type=__XN_TSC_TYPE_FREERUNNING;;

208 209 210 211 212 213 214 215 216 217 218 219
	mx2)		arch=5
			tsc_type=__XN_TSC_TYPE_FREERUNNING;;

	mx3)		arch=6
			tsc_type=__XN_TSC_TYPE_FREERUNNING;;

	pxa) 		arch=5
	      		tsc_type=__XN_TSC_TYPE_FREERUNNING;;

	pxa3xx)	        arch=xscale3
			tsc_type=__XN_TSC_TYPE_FREERUNNING;;

220 221
	s3c2410) 	arch=4
			tsc_type=__XN_TSC_TYPE_DECREMENTER;;
222 223 224 225 226 227 228 229 230 231 232 233 234 235

	sa1100) 	arch=4
			CONFIG_XENO_ARM_SA1100=y
			tsc_type=__XN_TSC_TYPE_FREERUNNING;;

	*)AC_MSG_ERROR([Invalid machine selected: "$enableval"]);;
	esac],
	[AC_MSG_ERROR([Selecting a machine with --enable-arm-mach is mandatory])
	])
  AC_MSG_RESULT(${enable_arm_mach:-no})

  AC_MSG_CHECKING(for ARM architecture version)
  if test $arch = choose; then
  	AC_ARG_ENABLE(arm-arch,
236
    	AS_HELP_STRING([--enable-arm-arch=<version>], [Select ARM architecture version, if the machine selected with --enable-arm-mach supports several architecture versions]),
237 238 239 240 241 242 243 244 245 246 247
    	[
		case "$enableval" in
		"" | y | ye | yes | n | no)
	    	AC_MSG_ERROR([You must supply an argument to --enable-arm-arch.])
	  	;;
		esac
		CONFIG_XENO_ARM_ARCH="$enableval"
    	])
  else
	CONFIG_XENO_ARM_ARCH=$arch
  fi
248
  AC_MSG_RESULT($CONFIG_XENO_ARM_ARCH)
249

250
  AC_MSG_CHECKING(for ARM SA1100 architecture)
251 252 253 254 255
  AC_MSG_RESULT(${CONFIG_XENO_ARM_SA1100:-no})

  AC_MSG_CHECKING(for TSC emulation in user-space.)
  if test $tsc_type; then
	AC_ARG_ENABLE(arm-tsc,
256
		AS_HELP_STRING([--disable-arm-tsc], [Disable TSC emulation in 
257
user-space]),
258
	[case "$enableval" in
259 260
	y | yes) CONFIG_XENO_ARM_HW_DIRECT_TSC=$tsc_type ;;
	*) unset CONFIG_XENO_ARM_HW_DIRECT_TSC ;;
261
	esac], [CONFIG_XENO_ARM_HW_DIRECT_TSC=$tsc_type])
262 263 264 265 266
	if test $CONFIG_XENO_ARM_HW_DIRECT_TSC; then
		AC_MSG_RESULT(yes)
	else
		AC_MSG_RESULT(no)
	fi
267 268 269 270
  else
	AC_MSG_RESULT(not supported by this board)
  fi

271 272 273 274 275 276 277 278
  AC_MSG_CHECKING(for ARM EABI interface)
  AC_ARG_ENABLE(arm-eabi,
	AS_HELP_STRING([--enable-arm-eabi], [Enable ARM EABI interface]),
	[case "$enableval" in
	y | yes) CONFIG_XENO_ARM_EABI=y ;;
	*) unset CONFIG_XENO_ARM_EABI ;;
	esac])
  AC_MSG_RESULT(${CONFIG_XENO_ARM_EABI:-no})
279 280
fi

281 282 283 284
dnl Flags for building Linux in Xenomai build tree.
AC_MSG_CHECKING(whether building Linux in Xenomai build tree)
AC_ARG_ENABLE(linux-build,
        AS_HELP_STRING([--enable-linux-build=<linux-src-dir>], [Build Linux in
285 286 287 288
Xenomai build tree, copying sources from <linux-src-dir>. If no source directory
is passed, look for a valid kernel source tree with a name starting with linux
under the build tree, then under the source tree, then if not cross-compiling,
try the sources of the running kernel and finally /usr/src/linux.]),
289 290 291
	[case "$enableval" in
	y | yes) XENO_LINUX_SRCDIR=y ;;
	n | no) unset XENO_LINUX_SRCDIR ;;
292
        *) XENO_LINUX_SRCDIR="`/bin/bash -c \"echo $enableval\"`" ;;
293 294
	esac])

295
if test x"$XENO_LINUX_SRCDIR" = x ; then
296 297 298 299
  AC_MSG_RESULT(no)
else
  AC_MSG_RESULT(yes)
  AC_MSG_CHECKING(for Linux sources)
300
  if test x"$XENO_LINUX_SRCDIR" = xy; then
301
      candidates="linux-* $srcdir/linux-* $srcdir/linux linux"
302
      if test x"$cross_compiling" = xno ; then
303 304
          candidates="$candidates /lib/modules/`uname -r`/source /usr/src/linux"
      fi
305 306
      for dir in $candidates ; do
          if test -r $dir/Makefile ; then 
307
              XENO_LINUX_SRCDIR=$dir
308
              break ; 
309 310
          fi
      done
311
  fi
312
  if test x"$XENO_LINUX_SRCDIR" = xy || test ! -r $XENO_LINUX_SRCDIR/Makefile ; then
313 314 315
     AC_MSG_ERROR([Unable to find Linux kernel sources tree, please pass a valid Linux sources directory to --enable-linux-build])
  else
     XENO_LINUX_SRCDIR=`cd $XENO_LINUX_SRCDIR && pwd`
316 317 318 319 320
     unset linux_EXTRAVERSION
     unset linux_PATCHLEVEL
     unset linux_SUBLEVEL
     unset linux_VERSION

321 322 323 324
     linux_EXTRAVERSION=`sed 's/^EXTRAVERSION = *\(.*\)/\1/;t;d' $XENO_LINUX_SRCDIR/Makefile`
     linux_PATCHLEVEL=`sed 's/^PATCHLEVEL = *\(.*\)/\1/;t;d' $XENO_LINUX_SRCDIR/Makefile`
     linux_SUBLEVEL=`sed 's/^SUBLEVEL = *\(.*\)/\1/;t;d' $XENO_LINUX_SRCDIR/Makefile`
     linux_VERSION=`sed 's/^VERSION = *\(.*\)/\1/;t;d' $XENO_LINUX_SRCDIR/Makefile`
325 326 327 328 329

     linux_base_version="$linux_VERSION.$linux_PATCHLEVEL.$linux_SUBLEVEL"
     linux_full_version="$linux_base_version$linux_EXTRAVERSION"

     if test x"$linux_PATCHLEVEL" = x -o x"$linux_SUBLEVEL" = x || 
330
        test x"$linux_VERSION" = x ; then
331
        AC_MSG_ERROR([Unable to get version of $XENO_LINUX_SRCDIR, aborting.])
332 333 334
     else
        AC_MSG_RESULT([$XENO_LINUX_SRCDIR (kernel ${linux_full_version})])
     fi
335 336

     case "$linux_base_version" in
337
	2.4.*) XENO_LINUX_ALL_TARGETS="bzImage modules" ;;
338
        2.6.*) XENO_LINUX_ALL_TARGETS="all";;
339
	*) AC_MSG_ERROR([Unknown Linux version $linux_full_version]) ;;
340 341
     esac
     AC_SUBST(XENO_LINUX_ALL_TARGETS)
342 343
     AC_SUBST(XENO_LINUX_INSTALL_TARGET)
     AC_SUBST(XENO_LINUX_IMAGE)
344 345 346
  fi

  unset ADEOS_PATCH
Philippe Gerum's avatar
Philippe Gerum committed
347 348
  if test \! -e $XENO_LINUX_SRCDIR/kernel/ipipe; then
  AC_MSG_CHECKING(for Adeos patch)
349 350 351 352 353
  AC_ARG_WITH(adeos-patch,
        AS_HELP_STRING([--with-adeos-patch],[specify the path to the Adeos
patch. Default is to infer the patch name from Linux kernel version.]),
        [ADEOS_PATCH="`/bin/bash -c \"echo $withval\"`"])

354
  if test x"$ADEOS_PATCH" = x && test x"$linux_base_version" != x ; then
355
        ADEOS_PATCH="`( ls $srcdir/ksrc/arch/$XENO_TARGET_ARCH/patches/adeos-ipipe-$linux_base_version*-{$XENO_TARGET_ARCH,$XENO_LINUX_ARCH}-*|sort -r ) 2>/dev/null | head -n1`"
356
  fi
357
  if test x"$ADEOS_PATCH" = x || test ! -e $ADEOS_PATCH ; then
358
     AC_MSG_ERROR([Unable to find Adeos patch, please use --with-adeos-patch])
359 360 361
  else
     AC_MSG_RESULT([$ADEOS_PATCH])
  fi
362 363
  case "$ADEOS_PATCH" in
	*-powerpc-*) XENO_LINUX_ARCH=powerpc;;
364
	*-x86-*) XENO_LINUX_ARCH=x86;;
365
  esac
Philippe Gerum's avatar
Philippe Gerum committed
366
  fi
367 368
  AC_SUBST(ADEOS_PATCH)

369 370 371 372 373 374 375 376 377
  unset LNDIR
  AC_CHECK_PROG(LNDIR, lndir, lndir)
  if test "x$LNDIR" != "x"; then
    AC_MSG_CHECKING(if lndir supports the -silent -ignorelinks options)
    if mkdir conftest1.dir && : > conftest1.dir/foo && mkdir conftest2.dir; then
	  cd conftest2.dir && $LNDIR -silent -ignorelinks ../conftest1.dir \
		&& cd ..
	  test -e conftest2.dir/foo && LNDIR="$LNDIR -silent -ignorelinks"
    fi
378
    rm -Rf contest1.dir conftest2.dir
379 380 381 382 383 384 385
    if test "x$LNDIR" = "xlndir"; then
	AC_MSG_RESULT(no)
    else
	AC_MSG_RESULT(yes)
    fi
  fi

386
  AC_CONFIG_COMMANDS(linux, [
387
     if test -e linux/.xenomai-prepared ; then
388 389
        . linux/.xenomai-prepared
        if test x"$XENO_LINUX_VERSION" != x"$PREPARED_LINUX_VERSION" ||
Philippe Gerum's avatar
Philippe Gerum committed
390
           test x`basename "$ADEOS_PATCH"` != x"$PREPARED_ADEOS_PATCH" ; then
391 392 393
           echo "*** Warning: built version of linux and requested versions are "
           echo "*** different. If you want to build the requested version of "
           echo "*** linux, remove the file: linux/.xenomai-prepared."
394 395
        else
           touch linux/.xenomai-prepared
396 397 398 399
        fi
     else
           set -e
           targetdir=$PWD/linux
400 401
           if test \! -e linux || test \! $XENO_LINUX_SRCDIR -ef linux ; then
               if test -e linux ; then
402 403 404 405 406 407 408
                   test -e linux/.config && mv linux/.config .xenomai.config
                   echo $ECHO_N "Removing existing linux directory... $ECHO_C" 
                   rm -Rf linux
                   echo "${ECHO_T}done."
               fi
               mkdir linux
               echo $ECHO_N "Making linux a shadow copy of $XENO_LINUX_SRCDIR... $ECHO_C" 
409 410 411 412 413 414 415 416 417
	       if test -z "$LNDIR"; then
	           cd $XENO_LINUX_SRCDIR
                   find . -! -type d | while read f ; do
                       d=$targetdir/`dirname $f`
                       mkdir -p $d && ln -sf $XENO_LINUX_SRCDIR/$f $d/`basename $f`
                   done
               else
		   cd $targetdir && $LNDIR $XENO_LINUX_SRCDIR
	       fi
418 419 420 421
               echo "${ECHO_T}done."
           fi
           cd $targetdir

422
           if test -e $XENO_LINUX_SRCDIR/.config ; then
423
              . $XENO_LINUX_SRCDIR/.config
424 425
	      test x"$CONFIG_ARM" = xy && cfg_arch=arm || :
              test x"$CONFIG_BLACKFIN" = xy && cfg_arch=blackfin || :
426
              test x"$CONFIG_IA64" = xy && cfg_arch=ia64 || :
427 428 429 430 431 432
	      if test x"$CONFIG_PPC" = xy; then
	      	   cfg_arch=ppc
  	           test x"$CONFIG_PPC32" = xy && cfg_arch=powerpc || :
              	   test x"$CONFIG_PPC64" = xy && cfg_arch=powerpc || :
	      	   test x"$CONFIG_PPC_MERGE" = xy && cfg_arch=powerpc || :
	      fi
Philippe Gerum's avatar
Philippe Gerum committed
433
              test x"$CONFIG_X86_64" = xy && cfg_arch=x86_64 || :
434 435
              test x"$CONFIG_X86" = xy && cfg_arch=i386 || :
              if test $cfg_arch = $XENO_LINUX_ARCH ; then
436 437 438 439 440 441 442
                 cp $XENO_LINUX_SRCDIR/.config .xenomai.config
              fi
              echo "Cleaning linux directory..." 
              make ARCH=$cfg_arch distclean
              test -e .xenomai.config && mv .xenomai.config .config
           fi
           cd ..
Philippe Gerum's avatar
Philippe Gerum committed
443
           $srcdir/scripts/prepare-kernel.sh --verbose \
444
             --adeos="$ADEOS_PATCH" --linux=linux --arch=$XENO_LINUX_ARCH	
445 446 447
           test -e .xenomai.config && mv .xenomai.config linux/.config || :
           cat > linux/.xenomai-prepared.tmp <<EOF
PREPARED_LINUX_VERSION=$XENO_LINUX_VERSION
Philippe Gerum's avatar
Philippe Gerum committed
448
PREPARED_ADEOS_PATCH=`basename "$ADEOS_PATCH"`
449 450 451 452 453 454 455
EOF
           mv linux/.xenomai-prepared.tmp linux/.xenomai-prepared
     fi
        ],[XENO_LINUX_SRCDIR=$XENO_LINUX_SRCDIR
           XENO_TARGET_ARCH=$XENO_TARGET_ARCH
           XENO_LINUX_ARCH=$XENO_LINUX_ARCH
           XENO_LINUX_VERSION=$linux_full_version
456 457
           ADEOS_PATCH=$ADEOS_PATCH
	   LNDIR="$LNDIR"])
458 459 460
fi
AM_CONDITIONAL(XENO_BUILD_LINUX, [test \! x"$XENO_LINUX_SRCDIR" = x])

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
461 462
dnl Documentation package.

463 464 465 466 467
if test x"$docdir" = x; then
        docdir=$datadir/doc/$PACKAGE-$VERSION
fi
AC_SUBST(docdir)

468
if test \! -d $srcdir/doc ; then 
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
469 470 471 472 473 474 475
    unset XENO_MAYBE_DOCDIR
else
    XENO_MAYBE_DOCDIR=doc
fi
AC_SUBST(XENO_MAYBE_DOCDIR)

AC_MSG_CHECKING(for Doxygen documentation)
476
AC_ARG_ENABLE(dox-doc,
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
477 478 479 480 481 482
	AS_HELP_STRING([--enable-dox-doc], [Build Doxygen documentation]),
	[case "$enableval" in
	y | yes) CONFIG_XENO_DOC_DOX=y ;;
	*) unset CONFIG_XENO_DOC_DOX ;;
	esac])

483
if test \! -d $srcdir/doc ; then
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
484 485 486 487 488 489 490 491 492 493 494
    if test x$CONFIG_XENO_DOC_DOX = xy ; 
    then
        AC_MSG_ERROR([documentation tree is missing.])
    fi
    AC_MSG_RESULT([not present])
else
    AC_MSG_RESULT(${CONFIG_XENO_DOC_DOX:-no})
fi

AC_CHECK_PROG(DOXYGEN, doxygen, doxygen)

495
if test x${CONFIG_XENO_DOC_DOX} = xy -a x"$DOXYGEN" = x ; then
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
496 497 498 499
   AC_MSG_ERROR([Missing the Doxygen tools to generate the documentation.])
fi

AC_CHECK_PROG(DOXYGEN_HAVE_DOT, dot, YES, NO)
500
if test x"$DOXYGEN_HAVE_DOT" = xYES ; then
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
501 502 503 504 505 506 507
   DOXYGEN_SHOW_INCLUDE_FILES=NO
else
   DOXYGEN_SHOW_INCLUDE_FILES=YES
fi

case "$CONFIG_XENO_DOC_DBX" in
y | ye | yes)
508
    DBX_DOC=yes ;;
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
509
*)
510
    DBX_DOC="" ;;
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554
esac
DBX_NET="$CONFIG_XENO_DBX_NET"
DBX_ROOT="$CONFIG_XENO_DBX_ROOT"
DBX_XSL_ROOT="$CONFIG_XENO_DBX_XSL_ROOT"
DBX_DOC_INIT(doc/docbook, doc/generated, 4.2)

AC_MSG_CHECKING(whether using LaTeX non-stop mode)
AC_ARG_ENABLE(verbose-latex,
        AS_HELP_STRING([--enable-verbose-latex], [Uses LaTeX non-stop mode]),
        [case "$enableval" in
        y | yes) CONFIG_XENO_DOC_LATEX_NONSTOP=y ;;
        *) unset CONFIG_XENO_DOC_LATEX_NONSTOP ;;
        esac])
AC_MSG_RESULT(${CONFIG_XENO_DOC_LATEX_NONSTOP:-no})

if test x${CONFIG_XENO_DOC_LATEX_NONSTOP} = xy; then
   LATEX_BATCHMODE=NO
   LATEX_MODE=nonstopmode
else
   LATEX_BATCHMODE=YES
   LATEX_MODE=batchmode
fi

dnl Determine whether some specific headers are present on this system.
AC_CHECK_HEADERS(mqueue.h)

dnl
dnl Produce the info needed to build xeno_config.h
dnl

AC_DEFINE_UNQUOTED(CONFIG_XENO_VERSION_MAJOR,$CONFIG_XENO_VERSION_MAJOR,[config])
AC_DEFINE_UNQUOTED(CONFIG_XENO_VERSION_MINOR,$CONFIG_XENO_VERSION_MINOR,[config])
AC_DEFINE_UNQUOTED(CONFIG_XENO_REVISION_LEVEL,$CONFIG_XENO_REVISION_LEVEL,[config])

dnl
dnl Features we enabled and likely want to find at kernel level.
dnl When applicable, we reuse the kernel option symbol so that we
dnl don't need to make particular cases with kernel code which may
dnl also be compiled in user-space libs.
dnl

test x$CONFIG_XENO_X86_SEP = xy && AC_DEFINE(CONFIG_XENO_X86_SEP,1,[config])
test x$CONFIG_SMP = xy && AC_DEFINE(CONFIG_SMP,1,[config])
test x$CONFIG_X86_TSC = xy && AC_DEFINE(CONFIG_X86_TSC,1,[config])
555
test -n "$CONFIG_XENO_ARM_ARCH" && AC_DEFINE_UNQUOTED(CONFIG_XENO_ARM_ARCH,$CONFIG_XENO_ARM_ARCH,[config])
556

557
test x$CONFIG_XENO_ARM_SA1100 = xy && AC_DEFINE(CONFIG_XENO_ARM_SA1100,1,[config])
558
test $CONFIG_XENO_ARM_HW_DIRECT_TSC && AC_DEFINE_UNQUOTED(CONFIG_XENO_ARM_HW_DIRECT_TSC,$CONFIG_XENO_ARM_HW_DIRECT_TSC,[config])
559
test x$CONFIG_XENO_ARM_EABI = xy && AC_DEFINE(CONFIG_XENO_ARM_EABI,1,[config])
560

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591
dnl CAUTION: We need to have the CONFIG_XENO_XX symbols always
dnl defined when the configuration header is read, but we want the
dnl Autoconf-produced symbols to be defined only when compiling
dnl Xenomai. This way, we won't pollute the namespace with the latter
dnl when our configuration header is indirectly included by a client
dnl application. To achieve this, we ask autoheader to produce the
dnl following header structure:
dnl #define CONFIG_XX
dnl #define CONFIG_XX ...
dnl #ifdef __IN_XENO__
dnl <Autoconf-defined symbols>
dnl #endif /* __IN_XENO__ */
dnl This is quite a hack since we have to rely on the fact that
dnl all Autoconf-generated symbols are lexicographically sorted
dnl after CONFIG_XENO_XX ones, but, well...
dnl Use a key which will cause the verbatim string to be put after
dnl all CONFIG_XENO_XX symbols, but still before any Autoconf-generated
dnl symbol, hence CONFIG_XENO___.
AH_VERBATIM(CONFIG_XENO___,[#ifdef __IN_XENO__])

dnl Now we can close the conditional section, right after all
dnl Autoconf-generated symbols have been listed.
AH_BOTTOM([#endif /* __IN_XENO__ */])

dnl
dnl Produce automake conditionals.
dnl

dnl Documentation.
AM_CONDITIONAL(CONFIG_XENO_DOC_DOX,[test "$CONFIG_XENO_DOC_DOX" = y])

Philippe Gerum's avatar
Philippe Gerum committed
592 593 594
AC_MSG_CHECKING([for sched_setaffinity])
AC_CACHE_VAL(ac_cv_sched_setaffinity,
 save_CFLAGS="$CFLAGS"
595
 CFLAGS="-Wimplicit-function-declaration -Werror -D_GNU_SOURCE"
596
 [AC_TRY_LINK([#include <sched.h>],
Philippe Gerum's avatar
Philippe Gerum committed
597 598 599 600
 [cpu_set_t cpu_set; sched_setaffinity(0, sizeof(cpu_set), &cpu_set);],
 [ac_cv_sched_setaffinity=new],
 [ac_cv_sched_setaffinity=bad])]
 if test $ac_cv_sched_setaffinity = bad ; then
601
   [AC_TRY_LINK([#include <sched.h>],
602
   [cpu_set_t cpu_set; sched_setaffinity(0, &cpu_set);],
Philippe Gerum's avatar
Philippe Gerum committed
603 604 605
   [ac_cv_sched_setaffinity=old],
   [ac_cv_sched_setaffinity=no])]
 fi
606
 if test $ac_cv_sched_setaffinity = old ; then
Philippe Gerum's avatar
Philippe Gerum committed
607 608
     AC_MSG_RESULT(old)
     AC_DEFINE(HAVE_OLD_SETAFFINITY,1,[config])
609
 elif test $ac_cv_sched_setaffinity = new ; then
Philippe Gerum's avatar
Philippe Gerum committed
610 611 612 613 614 615 616
     AC_MSG_RESULT(ok)
     AC_DEFINE(HAVE_RECENT_SETAFFINITY,1,[config])
 else
     AC_MSG_RESULT(no)
 fi
 CFLAGS="$save_CFLAGS")

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
AC_MSG_CHECKING([for specific GCC switches])
AC_CACHE_VAL(ac_cv_gcc_wnoalias,
AC_LANG_SAVE
AC_LANG_C
save_CFLAGS="$CFLAGS"
CFLAGS="-Wno-strict-aliasing -Werror"
[AC_TRY_COMPILE([],
[return 0;],
[ac_cv_gcc_wnoalias=yes],
[ac_cv_gcc_wnoalias=no])]
CFLAGS="$save_CFLAGS"
AC_LANG_RESTORE)
if [[ $ac_cv_gcc_wnoalias = no ]]; then
  gcc_w_noalias=
else
  gcc_w_noalias="-Wno-strict-aliasing"
fi
AC_MSG_RESULT([done])

636 637
dnl Common CFLAGS and LDFLAGS
XENO_USER_CFLAGS="-D_GNU_SOURCE -D_REENTRANT"
Philippe Gerum's avatar
Philippe Gerum committed
638
XENO_USER_LDFLAGS=
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
639

640 641 642 643
dnl Exported CFLAGS and LDFLAGS, may be enhanced per-arch below
XENO_USER_APP_CFLAGS=$XENO_USER_CFLAGS
XENO_USER_APP_LDFLAGS=$XENO_USER_LDFLAGS

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
644
case $XENO_TARGET_ARCH in
645
 x86)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
646 647 648 649 650 651 652 653
	XENO_USER_CFLAGS="$XENO_USER_CFLAGS -Wall -pipe -fstrict-aliasing $gcc_w_noalias"
        ;;
 powerpc)
	XENO_USER_CFLAGS="$XENO_USER_CFLAGS -Wall -pipe"
        ;;
 ia64)
	XENO_USER_CFLAGS="$XENO_USER_CFLAGS -Wall -pipe"
        ;;
654
 blackfin)
655
	# Produce libraries in FDPIC format.
656 657 658 659
	XENO_USER_CFLAGS="$XENO_USER_CFLAGS -Wall -pipe"
	XENO_USER_LDFLAGS="$XENO_USER_CFLAGS"
	XENO_USER_APP_CFLAGS="$XENO_USER_APP_CFLAGS"
	XENO_USER_APP_LDFLAGS="$XENO_USER_APP_LDFLAGS"
660
        ;;
661
 arm)
662
	XENO_USER_CFLAGS="$XENO_USER_CFLAGS -Wall -pipe -march=armv$CONFIG_XENO_ARM_ARCH"
663
        ;;
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
664 665 666 667 668 669 670 671
esac

if test x$debug_symbols = xy; then
   XENO_USER_CFLAGS="-g $XENO_USER_CFLAGS"
else
   XENO_USER_CFLAGS="-O2 $XENO_USER_CFLAGS"
fi

672
XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes"
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
673

674 675 676 677 678 679 680 681 682 683 684 685 686 687
AC_MSG_CHECKING([whether ld supports @file])
AC_CACHE_VAL(ac_cv_ld_file_option,
  AC_LANG_SAVE
  AC_LANG_C
  save_LDFLAGS="$LDFLAGS"
  [LDFLAGS="-Wl,@/dev/null"]
  AC_LINK_IFELSE([main(){}],
    [ac_cv_ld_file_option=yes],
    [ac_cv_ld_file_option=no])
  LDFLAGS="$save_LDFLAGS"
  AC_LANG_RESTORE)
if [[ $ac_cv_ld_file_option = yes ]]; then
	XENO_POSIX_WRAPPERS="-Wl,@`cd $srcdir && pwd`/src/skins/posix/posix.wrappers"
else
688 689
	XENO_POSIX_WRAPPERS=`while read wrap_option symbol ; do \
			echo -n "-Wl,$wrap_option,$symbol " ; \
690 691 692 693 694
		done < $srcdir/src/skins/posix/posix.wrappers`
fi
AC_MSG_RESULT(${ac_cv_ld_file_option:-no})
LD_FILE_OPTION=$ac_cv_ld_file_option
AC_SUBST(LD_FILE_OPTION)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
695

696
AC_MSG_CHECKING(whether the POSIX skin library automatically calls mlockall)
697 698 699 700 701 702 703 704 705 706 707 708 709 710
AC_ARG_ENABLE(posix-auto-mlockall,
	AS_HELP_STRING([--enable-posix-auto-mlockall], [Enable Xenomai POSIX
skin library to automatically call mlockall at startup. This option is mainly
useful for running third-parties programs such as the Open Posix Testsuite
unmodified with Xenomai POSIX skin]),
	[case "$enableval" in
	y | yes) CONFIG_XENO_POSIX_AUTO_MLOCKALL=y ;;
	*) unset CONFIG_XENO_POSIX_AUTO_MLOCKALL ;;
	esac])
AC_MSG_RESULT(${CONFIG_XENO_POSIX_AUTO_MLOCKALL:-no})
if test x$CONFIG_XENO_POSIX_AUTO_MLOCKALL = xy; then
	AC_DEFINE(CONFIG_XENO_POSIX_AUTO_MLOCKALL,1,[config])
fi

711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
AC_MSG_CHECKING(whether the pSOS skin library automatically calls mlockall)
AC_ARG_ENABLE(psos-auto-mlockall,
	AS_HELP_STRING([--enable-psos-auto-mlockall], [Enable the
Xenomai pSOS skin library to automatically call mlockall at
process startup. Unless this option is switched on, the application
will have to lock its memory explicitly while initializing.]),
	[case "$enableval" in
	y | yes) CONFIG_XENO_PSOS_AUTO_MLOCKALL=y ;;
	*) unset CONFIG_XENO_PSOS_AUTO_MLOCKALL ;;
	esac])
AC_MSG_RESULT(${CONFIG_XENO_PSOS_AUTO_MLOCKALL:-no})
if test x$CONFIG_XENO_POSIX_PSOS_MLOCKALL = xy; then
	AC_DEFINE(CONFIG_XENO_PSOS_AUTO_MLOCKALL,1,[config])
fi

726 727 728 729 730 731 732 733 734 735 736 737 738 739 740
AC_MSG_CHECKING(whether the uITRON skin library automatically calls mlockall)
AC_ARG_ENABLE(uitron-auto-mlockall,
	AS_HELP_STRING([--enable-uitron-auto-mlockall], [Enable the
Xenomai uITRON skin library to automatically call mlockall at
process startup. Unless this option is switched on, the application
will have to lock its memory explicitly while initializing.]),
	[case "$enableval" in
	y | yes) CONFIG_XENO_UITRON_AUTO_MLOCKALL=y ;;
	*) unset CONFIG_XENO_UITRON_AUTO_MLOCKALL ;;
	esac])
AC_MSG_RESULT(${CONFIG_XENO_UITRON_AUTO_MLOCKALL:-no})
if test x$CONFIG_XENO_POSIX_UITRON_MLOCKALL = xy; then
	AC_DEFINE(CONFIG_XENO_UITRON_AUTO_MLOCKALL,1,[config])
fi

741 742
save_LIBS="$LIBS"
LIBS="$LIBS -lrt"
743
AC_CHECK_FUNCS([shm_open shm_unlink mmap64 ftruncate64])
744 745
LIBS="$save_LIBS"

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
746 747 748 749 750 751 752 753 754 755 756
dnl
dnl Build the Makefiles
dnl

AC_SUBST(DOXYGEN_SHOW_INCLUDE_FILES)
AC_SUBST(DOXYGEN_HAVE_DOT)
AC_SUBST(DOXYGEN)
AC_SUBST(LATEX_BATCHMODE)
AC_SUBST(LATEX_MODE)

AC_SUBST(XENO_TARGET_ARCH)
757
AC_SUBST(XENO_LINUX_ARCH)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
758 759 760
AC_SUBST(XENO_BUILD_STRING)
AC_SUBST(XENO_HOST_STRING)
AC_SUBST(XENO_USER_CFLAGS)
Philippe Gerum's avatar
Philippe Gerum committed
761
AC_SUBST(XENO_USER_LDFLAGS)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
762
AC_SUBST(XENO_USER_APP_CFLAGS)
Philippe Gerum's avatar
Philippe Gerum committed
763
AC_SUBST(XENO_USER_APP_LDFLAGS)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
764 765 766
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
        ['$(top_srcdir)/src/skins/posix/posix.wrappers'])
AC_SUBST(XENO_POSIX_WRAPPERS)
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
767 768

base=asm-$XENO_TARGET_ARCH
Philippe Gerum's avatar
Philippe Gerum committed
769
AC_CONFIG_LINKS([src/include/asm/xenomai:$srcdir/include/$base])
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
770
base=asm-generic
Philippe Gerum's avatar
Philippe Gerum committed
771
AC_CONFIG_LINKS([src/include/$base/xenomai:$srcdir/include/$base])
Philippe Gerum's avatar
Philippe Gerum committed
772

Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
773 774 775 776 777 778 779 780
AC_CONFIG_FILES([ \
	Makefile \
	config/Makefile \
	scripts/Makefile \
	scripts/xeno-config \
	scripts/xeno-load \
	scripts/xeno-test \
	src/Makefile \
Philippe Gerum's avatar
Philippe Gerum committed
781
	src/rtdk/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
782 783 784 785
	src/skins/Makefile \
       	src/skins/posix/Makefile \
       	src/skins/native/Makefile \
       	src/skins/vxworks/Makefile \
786
       	src/skins/psos+/Makefile \
787
       	src/skins/vrtx/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
788 789
       	src/skins/rtdm/Makefile \
       	src/skins/rtai/Makefile \
790
       	src/skins/uitron/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
791 792 793
	src/include/Makefile \
       	src/testsuite/Makefile \
       	src/testsuite/latency/Makefile \
794
       	src/testsuite/switchbench/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
795
       	src/testsuite/cyclic/Makefile \
796
       	src/testsuite/switchtest/Makefile \
797
	src/testsuite/irqbench/Makefile \
Jan Kiszka's avatar
Jan Kiszka committed
798
	src/testsuite/clocktest/Makefile \
799
       	src/testsuite/klatency/Makefile \
Jan Kiszka's avatar
Jan Kiszka committed
800 801
	src/utils/Makefile \
	src/utils/can/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
802 803
       	include/Makefile \
       	include/asm-generic/Makefile \
804
       	include/asm-generic/bits/Makefile \
805
       	include/asm-blackfin/Makefile \
806
       	include/asm-blackfin/bits/Makefile \
807 808
       	include/asm-x86/Makefile \
       	include/asm-x86/bits/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
809
       	include/asm-powerpc/Makefile \
810
       	include/asm-powerpc/bits/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
811
       	include/asm-ia64/Makefile \
812
       	include/asm-ia64/bits/Makefile \
813
       	include/asm-arm/Makefile \
814
       	include/asm-arm/bits/Makefile \
Philippe Gerum's avatar
Philippe Gerum committed
815
       	include/asm-sim/Makefile \
816
       	include/asm-sim/bits/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
817 818 819
       	include/native/Makefile \
       	include/nucleus/Makefile \
       	include/posix/Makefile \
820
       	include/posix/sys/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
821 822 823 824 825 826 827 828
       	include/psos+/Makefile \
       	include/rtai/Makefile \
       	include/rtdm/Makefile \
       	include/uitron/Makefile \
       	include/vrtx/Makefile \
       	include/vxworks/Makefile \
	])

829
if test \! x$XENO_MAYBE_DOCDIR = x ; then
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
830 831
      AC_CONFIG_FILES([ \
	doc/Makefile \
Philippe Gerum's avatar
Philippe Gerum committed
832
	doc/txt/Makefile \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
833
	doc/man/Makefile \
834 835 836 837 838 839 840 841 842 843 844
	doc/man/clocktest.man \
	doc/man/cyclictest.man \
	doc/man/irqbench.man \
	doc/man/irqloop.man \
	doc/man/klatency.man \
	doc/man/latency.man \
	doc/man/rtcanconfig.man \
	doc/man/rtcanrecv.man \
	doc/man/rtcansend.man \
	doc/man/switchbench.man \
	doc/man/switchtest.man \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
845 846 847 848 849 850
	doc/man/runinfo.man \
	doc/man/xeno-config.man \
	doc/man/xeno-info.man \
	doc/man/xeno-load.man \
	doc/man/xeno-test.man \
	doc/doxygen/Makefile \
851
	doc/doxygen/Doxyfile-common \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
852
	doc/doxygen/Doxyfile \
853 854 855 856
	doc/doxygen/Doxyfile-native \
	doc/doxygen/Doxyfile-nucleus \
	doc/doxygen/Doxyfile-posix \
	doc/doxygen/Doxyfile-rtdm \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
857 858 859 860 861 862 863 864
	doc/docbook/Makefile \
	doc/docbook/catalog \
	doc/docbook/custom-stylesheets/Makefile \
	doc/docbook/custom-stylesheets/xsl/Makefile \
	doc/docbook/custom-stylesheets/xsl/common/Makefile \
	doc/docbook/custom-stylesheets/xsl/fo/Makefile \
	doc/docbook/custom-stylesheets/xsl/html/Makefile \
	doc/docbook/custom-stylesheets/xsl/html/chunk.xsl \
865
	doc/docbook/custom-stylesheets/xsl/html/onechunk.xsl \
Gilles Chanteperdrix's avatar
Gilles Chanteperdrix committed
866 867 868 869 870
	doc/docbook/xenomai/Makefile \
      ])
fi

AC_OUTPUT()