scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Call to get the directory mode depending on $CT_SYS_OS
yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.
1 diff -durN ltrace-0.4.orig/configure ltrace-0.4/configure
2 --- ltrace-0.4.orig/configure 2008-10-23 23:19:38.000000000 +0200
3 +++ ltrace-0.4/configure 2008-10-23 23:19:06.000000000 +0200
9 + linux-*) HOST_OS=linux-gnu;;
14 diff -durN ltrace-0.4.orig/configure.ac ltrace-0.4/configure.ac
15 --- ltrace-0.4.orig/configure.ac 2008-10-23 23:19:43.000000000 +0200
16 +++ ltrace-0.4/configure.ac 2008-10-23 23:18:44.000000000 +0200
18 dnl Check host system type
22 + linux-*) HOST_OS=linux-gnu;;
26 dnl Checks for programs.