Comparison

configure @ 7607:d17bc0d0748e

configure: Normalize whitespace
author Kim Alvefur <zash@zash.se>
date Fri, 19 Aug 2016 14:43:38 +0200
parent 7548:69d8e1477c43
child 7608:2306d261ca0a
comparison
equal deleted inserted replaced
7582:e080b8b4f3cb 7607:d17bc0d0748e
104 ;; 104 ;;
105 --ostype=*) 105 --ostype=*)
106 OSTYPE="$value" 106 OSTYPE="$value"
107 OSTYPE_SET=yes 107 OSTYPE_SET=yes
108 if [ "$OSTYPE" = "debian" ]; then 108 if [ "$OSTYPE" = "debian" ]; then
109 LUA_SUFFIX="5.1"; 109 LUA_SUFFIX="5.1";
110 LUA_SUFFIX_SET=yes 110 LUA_SUFFIX_SET=yes
111 RUNWITH="lua5.1" 111 RUNWITH="lua5.1"
112 LUA_INCDIR=/usr/include/lua5.1; 112 LUA_INCDIR=/usr/include/lua5.1;
113 LUA_INCDIR_SET=yes 113 LUA_INCDIR_SET=yes
114 CFLAGS="$CFLAGS -D_GNU_SOURCE" 114 CFLAGS="$CFLAGS -D_GNU_SOURCE"
115 fi 115 fi
116 if [ "$OSTYPE" = "macosx" ]; then 116 if [ "$OSTYPE" = "macosx" ]; then
117 LUA_INCDIR=/usr/local/include; 117 LUA_INCDIR=/usr/local/include;
118 LUA_INCDIR_SET=yes 118 LUA_INCDIR_SET=yes
119 LUA_LIBDIR=/usr/local/lib 119 LUA_LIBDIR=/usr/local/lib
120 LUA_LIBDIR_SET=yes 120 LUA_LIBDIR_SET=yes
121 CFLAGS="$CFLAGS -mmacosx-version-min=10.3" 121 CFLAGS="$CFLAGS -mmacosx-version-min=10.3"
122 LDFLAGS="-bundle -undefined dynamic_lookup" 122 LDFLAGS="-bundle -undefined dynamic_lookup"
123 fi 123 fi
124 if [ "$OSTYPE" = "linux" ]; then 124 if [ "$OSTYPE" = "linux" ]; then
125 LUA_INCDIR=/usr/local/include; 125 LUA_INCDIR=/usr/local/include;
126 LUA_INCDIR_SET=yes 126 LUA_INCDIR_SET=yes
127 LUA_LIBDIR=/usr/local/lib 127 LUA_LIBDIR=/usr/local/lib
128 LUA_LIBDIR_SET=yes 128 LUA_LIBDIR_SET=yes
129 CFLAGS="-Wall -fPIC -D_GNU_SOURCE" 129 CFLAGS="-Wall -fPIC -D_GNU_SOURCE"
130 LDFLAGS="-shared" 130 LDFLAGS="-shared"
131 fi 131 fi
132 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]; then 132 if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]; then
133 LUA_INCDIR="/usr/local/include/lua51" 133 LUA_INCDIR="/usr/local/include/lua51"
134 LUA_INCDIR_SET=yes 134 LUA_INCDIR_SET=yes
135 CFLAGS="-Wall -fPIC -I/usr/local/include" 135 CFLAGS="-Wall -fPIC -I/usr/local/include"
136 LDFLAGS="-I/usr/local/include -L/usr/local/lib -shared" 136 LDFLAGS="-I/usr/local/include -L/usr/local/lib -shared"
137 LUA_SUFFIX="-5.1" 137 LUA_SUFFIX="-5.1"
138 LUA_SUFFIX_SET=yes 138 LUA_SUFFIX_SET=yes
139 LUA_DIR=/usr/local 139 LUA_DIR=/usr/local
140 LUA_DIR_SET=yes 140 LUA_DIR_SET=yes
141 CC=cc 141 CC=cc
142 LD=ld 142 LD=ld
143 fi 143 fi
144 if [ "$OSTYPE" = "openbsd" ]; then 144 if [ "$OSTYPE" = "openbsd" ]; then
145 LUA_INCDIR="/usr/local/include"; 145 LUA_INCDIR="/usr/local/include";
146 fi 146 fi
147 ;; 147 ;;
148 --libdir=*) 148 --libdir=*)
149 LIBDIR="$value" 149 LIBDIR="$value"
150 LIBDIR_SET=yes 150 LIBDIR_SET=yes
151 ;; 151 ;;
152 --datadir=*) 152 --datadir=*)
153 DATADIR="$value" 153 DATADIR="$value"
154 DATADIR_SET=yes 154 DATADIR_SET=yes
155 ;; 155 ;;
156 --require-config) 156 --require-config)
157 REQUIRE_CONFIG=yes 157 REQUIRE_CONFIG=yes
158 ;; 158 ;;
159 --lua-suffix=*) 159 --lua-suffix=*)
172 LUA_LIBDIR="$value" LUA_LIBDIR_SET=yes 172 LUA_LIBDIR="$value" LUA_LIBDIR_SET=yes
173 ;; 173 ;;
174 --with-idn=*) 174 --with-idn=*)
175 IDN_LIB="$value" 175 IDN_LIB="$value"
176 ;; 176 ;;
177 --idn-library=*) 177 --idn-library=*)
178 IDN_LIBRARY="$value" 178 IDN_LIBRARY="$value"
179 ;; 179 ;;
180 --with-ssl=*) 180 --with-ssl=*)
181 OPENSSL_LIB="$value" 181 OPENSSL_LIB="$value"
182 ;; 182 ;;
183 --with-random=getrandom) 183 --with-random=getrandom)
184 PRNG=GETRANDOM 184 PRNG=GETRANDOM
316 LUA_BINDIR="$LUA_DIR/bin" 316 LUA_BINDIR="$LUA_DIR/bin"
317 fi 317 fi
318 318
319 if [ "$IDN_LIBRARY" = "icu" ] 319 if [ "$IDN_LIBRARY" = "icu" ]
320 then 320 then
321 IDNA_LIBS="$ICU_FLAGS" 321 IDNA_LIBS="$ICU_FLAGS"
322 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU" 322 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU"
323 fi 323 fi
324 if [ "$IDN_LIBRARY" = "idn" ] 324 if [ "$IDN_LIBRARY" = "idn" ]
325 then 325 then
326 IDNA_LIBS="-l$IDN_LIB" 326 IDNA_LIBS="-l$IDN_LIB"
327 fi 327 fi
328 328
329 OPENSSL_LIBS="-l$OPENSSL_LIB" 329 OPENSSL_LIBS="-l$OPENSSL_LIB"
330 330
331 echo -n "Checking Lua includes... " 331 echo -n "Checking Lua includes... "