summaryrefslogtreecommitdiff
path: root/sntp/m4/ntp_dir_sep.m4
blob: d10735bef45b14009836316eb41cd3db5110ecec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl ######################################################################
dnl What directory path separator do we use?
AC_DEFUN([NTP_DIR_SEP], [
AC_CACHE_CHECK(
    [for directory path separator],
    [ntp_cv_dir_sep],
    [
	case "$ntp_cv_dir_sep" in
	 '')
	    case "$host_os" in
	     *djgpp | *mingw32* | *emx*)
		ntp_cv_dir_sep="'\\'"
		;;
	     *) 
		ntp_cv_dir_sep="'/'"
		;;
	    esac
	esac
    ]
)
AC_DEFINE_UNQUOTED([DIR_SEP], [$ntp_cv_dir_sep],
    [Directory separator character, usually / or \\])
])
dnl ======================================================================