174 } |
174 } |
175 |
175 |
176 |
176 |
177 # generate vars.mk |
177 # generate vars.mk |
178 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
178 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
179 PREFIX=$PREFIX |
179 PREFIX="$PREFIX" |
180 EPREFIX=$EPREFIX |
180 EPREFIX="$EPREFIX" |
181 BINDIR=$BINDIR |
181 BINDIR="$BINDIR" |
182 SBINDIR=$SBINDIR |
182 SBINDIR="$SBINDIR" |
183 LIBDIR=$LIBDIR |
183 LIBDIR="$LIBDIR" |
184 LIBEXECDIR=$LIBEXECDIR |
184 LIBEXECDIR="$LIBEXECDIR" |
185 DATADIR=$DATADIR |
185 DATADIR="$DATADIR" |
186 SYSCONFDIR=$SYSCONFDIR |
186 SYSCONFDIR="$SYSCONFDIR" |
187 SHAREDSTATEDIR=$SHAREDSTATEDIR |
187 SHAREDSTATEDIR="$SHAREDSTATEDIR" |
188 LOCALSTATEDIR=$LOCALSTATEDIR |
188 LOCALSTATEDIR="$LOCALSTATEDIR" |
189 INCLUDEDIR=$INCLUDEDIR |
189 INCLUDEDIR="$INCLUDEDIR" |
190 INFODIR=$INFODIR |
190 INFODIR="$INFODIR" |
191 MANDIR=$MANDIR |
191 MANDIR="$MANDIR" |
192 __EOF__ |
192 __EOF__ |
193 sort -u -o "$TEMP_DIR/vars.mk" "$TEMP_DIR/vars.mk" |
193 sort -u -o "$TEMP_DIR/vars.mk" "$TEMP_DIR/vars.mk" |
194 |
194 |
195 |
195 |
196 # toolchain detection utilities |
196 # toolchain detection utilities |