Opened 16 years ago
Closed 16 years ago
#3391 closed enhancement (fixed)
Configure : automatically detect the need to enable use_32bit
Reported by: | mmadia | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Configure should perform a simple check and conditionally enable the use_32bit flag.
Currently, Haiku does not support 64bit mode. Until it does, this sample code will help to unify the configure command across build platforms.
This is especially useful for creating a build script that can be run on any platform. Specifically, for Bitten, which I am currently working on.
# check for a 64bit platform platform_machine=`uname -m` case "${platform_machine}" in x86_64) use_32bit=1 ;; *) echo Assuming 32-bit machine: "$platform_machine" use_32bit=0 ;; esac
Attachments (1)
Note:
See TracTickets
for help on using tickets.
This should detect FreeBSD 64 and exit
line 337
Later, I'll create a patch for all of this and try to find someone willing to test.