xref: /freebsd/contrib/ntp/sntp/m4/ntp_dir_sep.m4 (revision 416ba5c74546f32a993436a99516d35008e9f384)
1*2b15cb3dSCy Schubertdnl ######################################################################
2*2b15cb3dSCy Schubertdnl What directory path separator do we use?
3*2b15cb3dSCy SchubertAC_DEFUN([NTP_DIR_SEP], [
4*2b15cb3dSCy SchubertAC_CACHE_CHECK(
5*2b15cb3dSCy Schubert    [for directory path separator],
6*2b15cb3dSCy Schubert    [ntp_cv_dir_sep],
7*2b15cb3dSCy Schubert    [
8*2b15cb3dSCy Schubert	case "$ntp_cv_dir_sep" in
9*2b15cb3dSCy Schubert	 '')
10*2b15cb3dSCy Schubert	    case "$host_os" in
11*2b15cb3dSCy Schubert	     *djgpp | *mingw32* | *emx*)
12*2b15cb3dSCy Schubert		ntp_cv_dir_sep="'\\'"
13*2b15cb3dSCy Schubert		;;
14*2b15cb3dSCy Schubert	     *)
15*2b15cb3dSCy Schubert		ntp_cv_dir_sep="'/'"
16*2b15cb3dSCy Schubert		;;
17*2b15cb3dSCy Schubert	    esac
18*2b15cb3dSCy Schubert	esac
19*2b15cb3dSCy Schubert    ]
20*2b15cb3dSCy Schubert)
21*2b15cb3dSCy SchubertAC_DEFINE_UNQUOTED([DIR_SEP], [$ntp_cv_dir_sep],
22*2b15cb3dSCy Schubert    [Directory separator character, usually / or \\])
23*2b15cb3dSCy Schubert])
24*2b15cb3dSCy Schubertdnl ======================================================================
25