+2025-04-01 Bruno Haible <bruno@clisp.org>
+
+ dcomp-script: Handle gdc binaries named <host>-gdc.
+ * m4/dcomp.m4 (gt_DCOMP): Look only at the first word of the --version
+ output and accept a "<host>-" prefix.
+ * build-aux/dcomp.sh.in: Likewise.
+
2025-03-31 Bruno Haible <bruno@clisp.org>
dcomp-script: New module.
# -Wl,OPTION (for libtool compatility)
# Find out which implementation we are using.
-case `@DC@ --version | sed -e 1q` in
- gdc* | egdc*) flavor=gdc ;;
+case `@DC@ --version | sed -e 's/ .*//' -e 1q` in
+ gdc | *-gdc | egdc | *-egdc) flavor=gdc ;;
LDC*) flavor=ldc ;;
DMD*) flavor=dmd ;;
*)
# dcomp.m4
-# serial 1
+# serial 2
dnl Copyright (C) 2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_MSG_RESULT([$ac_result])
AC_SUBST([DC])
if test -z "$DFLAGS" && test -n "$DC"; then
- case `$DC --version | sed -e 1q` in
- gdc* | egdc* | LDC*) DFLAGS="-g -O2" ;;
- *) DFLAGS="-g -O" ;;
+ case `$DC --version | sed -e 's/ .*//' -e 1q` in
+ gdc | *-gdc | egdc | *-egdc | LDC*) DFLAGS="-g -O2" ;;
+ *) DFLAGS="-g -O" ;;
esac
fi
AC_SUBST([DFLAGS])