mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-24 15:26:43 +00:00
f2eb2bf9ab
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.
23 lines
555 B
Plaintext
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])
|
|
])
|