blob: 751298a7f3a54d419c80b6595920668f2755bcf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
AC_DEFUN([GHC_SELECT_FILE_EXTENSIONS],
[
$2=''
$3='.so'
case $1 in
*-unknown-cygwin32)
AC_MSG_WARN([GHC does not support the Cygwin target at the moment])
AC_MSG_WARN([I'm assuming you wanted to build for i386-unknown-mingw32])
exit 1
;;
# examples: i386-unknown-mingw32, i686-w64-mingw32, x86_64-w64-mingw32
*-mingw32)
windows=YES
$2='.exe'
$3='.dll'
;;
# apple platform uses .dylib (macOS, iOS, ...)
*-apple-*)
$3='.dylib'
;;
esac
])
|