Skip to content

Commit

Permalink
configure: Source .config if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc0 committed Feb 7, 2015
1 parent fcd7c9d commit 74e2255
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dsp
*.o
*.so
config.mk
.config
9 changes: 9 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ Options:
--prefix=path (default: $PREFIX)
--bindir=path (default: $BINDIR)
--libdir=path (default: $LIBDIR)
--no-config
--help"

for i in "$@"; do
case "$i" in
--no-config) NO_CONFIG=y ;;
esac
done

[ "$NO_CONFIG" != "y" -a -f ./.config ] && . ./.config

for i in "$@"; do
case "$i" in
--disable-dsp) CONFIG_DISABLE_DSP=y ;;
Expand Down

0 comments on commit 74e2255

Please sign in to comment.