File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ AC_PROG_CXX
88
99PAGESIZE=auto
1010AC_ARG_WITH ( [ page-size] ,
11- AS_HELP_STRING ( [ --with-page-size=SIZE] , [ Specify default pagesize (default auto)] ) ,
12- PAGESIZE=$withval
13- )
14-
15- AS_IF ( [ test "x$PAGESIZE" = xauto] ,
16- AS_IF ( [ which getconf &>/dev/null] , [
17- PAGESIZE=`getconf PAGESIZE &>/dev/null || getconf PAGE_SIZE &>/dev/null`
18- ] )
19- AS_IF ( [ test "x$PAGESIZE" = x] , [
20- PAGESIZE=4096
21- ] )
11+ AS_HELP_STRING ( [ --with-page-size=SIZE] , [ Specify default pagesize (default auto)] ) ,
12+ PAGESIZE=$withval
2213)
2314
15+ if test "$PAGESIZE" = auto; then
16+ if type -p getconf &>/dev/null; then
17+ PAGESIZE=$(getconf PAGESIZE || getconf PAGE_SIZE)
18+ fi
19+ if test "$PAGESIZE" = auto -o -z "$PAGESIZE"; then
20+ PAGESIZE=4096
21+ fi
22+ fi
23+
2424AC_DEFINE_UNQUOTED ( PAGESIZE , ${PAGESIZE} )
2525AC_MSG_RESULT ( [ Setting page size to ${PAGESIZE}] )
2626
You can’t perform that action at this time.
0 commit comments