diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-21 13:40:22 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-21 13:40:22 +0000 |
commit | 86939cb45bd3dc4de80a21254506fdabbb6f731b (patch) | |
tree | 948b708435b9dcd0abbd1eb2eaef55335230ea03 /configure | |
parent | f980545b58dd011218c11c00b5ddf1f303b7a647 (diff) |
simplify CFLAGS/LDFLAGS autodetection
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -56,15 +56,10 @@ BINDIR= INSTALL="install" # try to auto detect CFLAGS and LDFLAGS -which pkg-config 2>/dev/null 1>&2 && { - if ! got=`pkg-config --cflags libtls`; then - CFLAGS="$got" - fi - - if ! got=`pkg-config --libs libtls`; then - LDFLAGS="$got" - fi -} +if which pkg-config 2>/dev/null 1>&2 && pkg-config libtls; then + CFLAGS=`pkg-config --cflags libtls` + LDFLAGS=`pkg-config --libs libtls` +fi # auto detect lex/flex which ${LEX} 2>/dev/null 1>&2 || { |