]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/m4/ntp_dir_sep.m4
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / m4 / ntp_dir_sep.m4
1 dnl ######################################################################
2 dnl What directory path separator do we use?
3 AC_DEFUN([NTP_DIR_SEP], [
4 AC_CACHE_CHECK(
5     [for directory path separator],
6     [ntp_cv_dir_sep],
7     [
8         case "$ntp_cv_dir_sep" in
9          '')
10             case "$host_os" in
11              *djgpp | *mingw32* | *emx*)
12                 ntp_cv_dir_sep="'\\'"
13                 ;;
14              *) 
15                 ntp_cv_dir_sep="'/'"
16                 ;;
17             esac
18         esac
19     ]
20 )
21 AC_DEFINE_UNQUOTED([DIR_SEP], [$ntp_cv_dir_sep],
22     [Directory separator character, usually / or \\])
23 ])
24 dnl ======================================================================