]> granicus.if.org Git - sudo/commitdiff
Depending on the bos level, AIX 6.1 may or may not include
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 15 May 2018 15:53:46 +0000 (09:53 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 15 May 2018 15:53:46 +0000 (09:53 -0600)
getline/getdelim and AIX 7.1 may or may not include memset_s.
Since we need to build packages that will work on all AIX 6.1 and
7.1 machines, use our getline() and memset_s emulation.

configure
configure.ac

index 5a3edb7cfc08446bdddb6f9c71c3366393318b03..2f26c53fdf0afa24dc78888e0ce52a709d5d54c1 100755 (executable)
--- a/configure
+++ b/configure
                    ac_cv_func_strnlen=no
                fi
 
+               # getline() may or may ont be present on AIX <= 6.1.
+               # bos610 is missing getline/getdelim but bos61J has it.
+               if test $OSMAJOR -le 6; then
+                   ac_cv_func_getline=no
+               fi
+
+               # memset_s() may or may ont be present on AIX <= 7.1.
+               # bos710 is missing memset_s but bos71L has it.
+               if test $OSMAJOR -le 7; then
+                   ac_cv_func_memset_s=no
+               fi
+
                # Remove timedir on boot, AIX does not have /var/run
                INIT_SCRIPT=aix.sh
                INIT_DIR=/etc/rc.d/init.d
index 77e1ecd57f067d3417c9df4dd4ab6596bcf5a11e..91eeb5d11f73a13d9a7756eb31dbb83226a408f4 100644 (file)
@@ -1818,6 +1818,18 @@ case "$host" in
                    ac_cv_func_strnlen=no
                fi
 
+               # getline() may or may ont be present on AIX <= 6.1.
+               # bos610 is missing getline/getdelim but bos61J has it.
+               if test $OSMAJOR -le 6; then
+                   ac_cv_func_getline=no
+               fi
+
+               # memset_s() may or may ont be present on AIX <= 7.1.
+               # bos710 is missing memset_s but bos71L has it.
+               if test $OSMAJOR -le 7; then
+                   ac_cv_func_memset_s=no
+               fi
+
                # Remove timedir on boot, AIX does not have /var/run
                INIT_SCRIPT=aix.sh
                INIT_DIR=/etc/rc.d/init.d