]> git.ipfire.org Git - thirdparty/curl.git/commit
configure: fix run-compiler for old /bin/sh
authorAlejandro R. Sedeño <asedeno@mit.edu>
Tue, 30 May 2023 21:56:58 +0000 (17:56 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 31 May 2023 06:56:23 +0000 (08:56 +0200)
commit5a023938fa5ed444074c78dc345c7c987e570a55
treea8a5d078c7dbab59aaee850f2fc2b13c790f74e7
parent9496d328029039b31345418b0f5a1f3cb6bcce9a
configure: fix run-compiler for old /bin/sh

If you try to assign and export on the same line on some older /bin/sh
implementations, it complains:

```
$ export "NAME=value"
NAME=value: is not an identifier
```

This commit rewrites run-compiler's assignments and exports to work with
old /bin/sh, splitting assignment and export into two separate
statements, and only quote the value. So now we have:

```
NAME="value"
export NAME
```

While we're here, make the same change to the two supporting
assign+export lines preceeding the script to be consistent with how
exports work throughout the rest of configure.ac.

Closes #11228
configure.ac