Software /
code /
prosody
Comparison
configure @ 7931:b619b85e01aa
util.pposix, configure: Move _GNU_SOURCE macro into source files
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Mar 2017 22:27:11 +0100 |
parent | 7749:a43a9ffd0579 |
child | 7935:96fa5ef5d613 |
comparison
equal
deleted
inserted
replaced
7930:5dec27760ecd | 7931:b619b85e01aa |
---|---|
111 LUA_SUFFIX_SET=yes | 111 LUA_SUFFIX_SET=yes |
112 fi | 112 fi |
113 RUNWITH="lua$LUA_SUFFIX" | 113 RUNWITH="lua$LUA_SUFFIX" |
114 LUA_INCDIR="/usr/include/lua$LUA_SUFFIX" | 114 LUA_INCDIR="/usr/include/lua$LUA_SUFFIX" |
115 LUA_INCDIR_SET=yes | 115 LUA_INCDIR_SET=yes |
116 CFLAGS="$CFLAGS -ggdb -D_GNU_SOURCE" | 116 CFLAGS="$CFLAGS -ggdb" |
117 fi | 117 fi |
118 if [ "$OSTYPE" = "macosx" ]; then | 118 if [ "$OSTYPE" = "macosx" ]; then |
119 LUA_INCDIR=/usr/local/include; | 119 LUA_INCDIR=/usr/local/include; |
120 LUA_INCDIR_SET=yes | 120 LUA_INCDIR_SET=yes |
121 LUA_LIBDIR=/usr/local/lib | 121 LUA_LIBDIR=/usr/local/lib |
126 if [ "$OSTYPE" = "linux" ]; then | 126 if [ "$OSTYPE" = "linux" ]; then |
127 LUA_INCDIR=/usr/local/include; | 127 LUA_INCDIR=/usr/local/include; |
128 LUA_INCDIR_SET=yes | 128 LUA_INCDIR_SET=yes |
129 LUA_LIBDIR=/usr/local/lib | 129 LUA_LIBDIR=/usr/local/lib |
130 LUA_LIBDIR_SET=yes | 130 LUA_LIBDIR_SET=yes |
131 CFLAGS="$CFLAGS -ggdb -D_GNU_SOURCE" | 131 CFLAGS="$CFLAGS -ggdb" |
132 fi | 132 fi |
133 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]; then | 133 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]; then |
134 LUA_INCDIR="/usr/local/include/lua51" | 134 LUA_INCDIR="/usr/local/include/lua51" |
135 LUA_INCDIR_SET=yes | 135 LUA_INCDIR_SET=yes |
136 CFLAGS="-Wall -fPIC -I/usr/local/include" | 136 CFLAGS="-Wall -fPIC -I/usr/local/include" |
165 LUA_CF="${LUA_CF%% *}" | 165 LUA_CF="${LUA_CF%% *}" |
166 if [ "$LUA_CF" != "" ]; then | 166 if [ "$LUA_CF" != "" ]; then |
167 LUA_INCDIR="$LUA_CF" | 167 LUA_INCDIR="$LUA_CF" |
168 LUA_INCDIR_SET=yes | 168 LUA_INCDIR_SET=yes |
169 fi | 169 fi |
170 CFLAGS="$CFLAGS -D_GNU_SOURCE" | 170 CFLAGS="$CFLAGS" |
171 fi | 171 fi |
172 ;; | 172 ;; |
173 --libdir=*) | 173 --libdir=*) |
174 LIBDIR="$value" | 174 LIBDIR="$value" |
175 LIBDIR_SET=yes | 175 LIBDIR_SET=yes |