configure: use neat comment style to denote different sections
This commit is contained in:
parent
8c5777fb98
commit
42f95378ec
1 changed files with 12 additions and 4 deletions
16
configure
vendored
16
configure
vendored
|
@ -10,7 +10,9 @@ cflags='-std=c99'
|
||||||
cppflags='-DLUA_USE_POSIX'
|
cppflags='-DLUA_USE_POSIX'
|
||||||
ldflags='-lm'
|
ldflags='-lm'
|
||||||
|
|
||||||
# utility functions
|
#
|
||||||
|
## utility functions
|
||||||
|
#
|
||||||
|
|
||||||
present () {
|
present () {
|
||||||
command -v "$1" 1>/dev/null 2>/dev/null
|
command -v "$1" 1>/dev/null 2>/dev/null
|
||||||
|
@ -23,7 +25,9 @@ throw () {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# generators
|
#
|
||||||
|
## flag generators
|
||||||
|
#
|
||||||
|
|
||||||
## C compiler
|
## C compiler
|
||||||
gen_CC () {
|
gen_CC () {
|
||||||
|
@ -74,7 +78,9 @@ gen_LDFLAGS () {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# command line interface
|
#
|
||||||
|
## command line interface
|
||||||
|
#
|
||||||
|
|
||||||
while getopts c:dhr ch; do
|
while getopts c:dhr ch; do
|
||||||
case "$ch" in
|
case "$ch" in
|
||||||
|
@ -98,7 +104,9 @@ EOF
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# creating the makefile
|
#
|
||||||
|
## create the makefile
|
||||||
|
#
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue