Salome HOME
Porting to CAS-6.2.sp1
[modules/filter.git] / adm_local / unix / config_files / with_Kernel.m4
1 #
2 # Check configure option --with-kernel=[yes|no|DIR] taking into account that
3 # MED_WITH_KERNEL may be already set during build_configure,
4 # Set MED_WITH_KERNEL to yes|no
5 #
6 # Author : Edawrd AGAPOV (OCC, 2005)
7 #
8
9 AC_DEFUN([WITH_KERNEL],[
10
11 AC_ARG_WITH(kernel,
12             [  --with-kernel default=yes ],
13             withkernel="$withval",withkernel="${MED_WITH_KERNEL}")
14
15 case $withkernel in
16   no)
17 #         AC_MSG_RESULT(************************************************)
18 #         AC_MSG_RESULT(*******   WITHOUT KERNEL configuration   *******)
19 #         AC_MSG_RESULT(************************************************)
20         MED_WITH_KERNEL="no";;
21   *)
22         MED_WITH_KERNEL="yes"
23 esac
24
25 AC_SUBST(MED_WITH_KERNEL)
26  
27 ])dnl