![]() |
#1 |
Adept
Join Date: Aug 2018
Location: Barcelona
Posts: 110
![]() |
Configure script purpose
What's the main purpose of the configure file? I know it detects system dependencies and allows for configuration options but it's a 7000+ lines of code script. I would also suggest the idea of using cmake for the whole build/test cycle. I have been using cmake for a few months and it's a really powerful tool for multiple systems developement. It's way superior to the old autogen+configure+makefile combo. So i would like to know from Nick or other devs how feasible would it be switching to cmake.
|
![]() |
![]() |
![]() |
#2 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,213
Donated: $40
![]() |
You are not alone in hating config/autoconf. If you port to cmake, it'll get adopted.
|
![]() |
![]() |
![]() |
#3 |
Adept
Join Date: Aug 2018
Location: Barcelona
Posts: 110
![]() |
I will try to get angband compiled with cmake when i finish exams. It doesn't look that complicated but i expect it to turn a nightmare when trying to build in windows and mac osx. I was trying also to port angband to python using derakon's code as basis but i left that aside months ago. Too much things to do and little spare time haha.
|
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,213
Donated: $40
![]() |
Windows and OSX each have makefile independent of configure, so it isn't necessary to get it all done at once.
|
![]() |
![]() |
![]() |
#5 |
Scout
Join Date: Mar 2019
Posts: 30
![]() |
This is a bit disingenuous, it appears you know precisely, what "configure" is, you just don't like it.
The actual script is NOT 7000+ lines long, it's more like 600. https://github.com/angband/angband/b...r/configure.ac The generated script works on everything that has a shell (not even bash, just any shell), thus it's completely dependency-free, which is the purpose. Yes, autoconf syntax is a bit terse, but is CMakeLists.txt really better? And yeah, autoconf has some problems, but so does CMake. Just my 2 cents, before jumping into next build system, maybe we should examine if that's even necessary? |
![]() |
![]() |
![]() |
#6 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,213
Donated: $40
![]() |
@Flambard: also, vi is totally better than emacs
|
![]() |
![]() |
![]() |
#7 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,771
Donated: $60
![]() |
You take that back.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#8 |
Adept
Join Date: May 2020
Location: Argentina
Posts: 109
![]() |
![]()
Or... you q! that
|
![]() |
![]() |
![]() |
#9 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,213
Donated: $40
![]() |
Sorry Nick--
I just had to swing at a hanging curve ball, right over the middle of the plate. More to the point, I wholeheartedly endorse the opinion in this thread. Autoconf works...except when it doesn't--at which poiny you are screwed . https://stackoverflow.com/questions/...make-and-scons |
![]() |
![]() |
![]() |
#10 | |
Adept
Join Date: Aug 2018
Location: Barcelona
Posts: 110
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OS X: Purpose of ~/Angband/config? | molybdenum | Development | 1 | July 6, 2013 00:04 |
Just what is/are the purpose(s) of iron spikes, anyway?* | Deof Movestofca | Vanilla | 18 | January 26, 2013 02:03 |
Functional purpose of town map? | bunnies | Vanilla | 24 | December 31, 2011 09:15 |
What purpose money? | smileyy | Vanilla | 11 | October 5, 2011 18:27 |
Purpose of social status in Vanilla 3.1 | Phoenix21692 | Vanilla | 1 | January 13, 2009 17:10 |