serval-dna/m4/ax_tmpdir_swift.m4
Andrew Bettison f2eb2bf9ab Add Swift 3/4 'servaldswift' executable
If the Swift 3 or Swift 4 compiler is present or passed to the configure
script in the SWIFTC variable, then the Makefile will compile a Swift
'servaldswift' executable to ensure that the module map links correctly
into a stand-alone Swift program.

Use the gold linker if supported, to avoid relocation errors on symbols
produced by Swift when linking dynamic libraries.
2018-03-06 15:29:17 +10:30

23 lines
555 B
Plaintext

# Serval Project Swift language support
#
# SYNOPSIS
#
# AX_TMPDIR_SWIFT
#
# DESCRIPTION
#
# AX_TMPDIR_SWIFT creates a temporary directory prefixed with "swft" that
# will be deleted when the shell exits. It sets the ax_tmpdir_swift shell
# variable to the absolute path of the created directory.
#
# Uses AS_TMPDIR() internally but preserves the value of the 'tmp' shell
# variable.
#
AC_DEFUN([AX_TMPDIR_SWIFT],[
AS_VAR_COPY([_swift_tmp], [tmp])
AS_TMPDIR([swft])
ax_tmpdir_swift="$tmp"
AS_VAR_COPY([tmp], [_swift_tmp])
])