@@ -14022,13 +14022,47 @@ $as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
1402214022
1402314023fi
1402414024
14025+ # Check for --with-computed-gotos
14026+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --with-computed-gotos" >&5
14027+ $as_echo_n " checking for --with-computed-gotos... " >&6 ; }
14028+
14029+ # Check whether --with-computed-gotos was given.
14030+ if test " ${with_computed_gotos+set} " = set ; then :
14031+ withval=$with_computed_gotos ;
14032+ if test " $withval " = yes
14033+ then
14034+
14035+ $as_echo " #define USE_COMPUTED_GOTOS 1" >> confdefs.h
14036+
14037+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
14038+ $as_echo " yes" >&6 ; }
14039+ fi
14040+ if test " $withval " = no
14041+ then
14042+
14043+ $as_echo " #define USE_COMPUTED_GOTOS 0" >> confdefs.h
14044+
14045+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
14046+ $as_echo " no" >&6 ; }
14047+ fi
14048+
14049+ else
14050+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no value specified" >&5
14051+ $as_echo " no value specified" >&6 ; }
14052+ fi
14053+
14054+
1402514055{ $as_echo " $as_me :${as_lineno-$LINENO } : checking whether $CC supports computed gotos" >&5
1402614056$as_echo_n " checking whether $CC supports computed gotos... " >&6 ; }
1402714057if ${ac_cv_computed_gotos+: } false ; then :
1402814058 $as_echo_n " (cached) " >&6
1402914059else
1403014060 if test " $cross_compiling " = yes; then :
14031- ac_cv_computed_gotos=no
14061+ if test " ${with_computed_gotos+set} " = set ; then
14062+ ac_cv_computed_gotos=" $with_computed_gotos -- configured --with(out)-computed-gotos"
14063+ else
14064+ ac_cv_computed_gotos=no
14065+ fi
1403214066else
1403314067 cat confdefs.h - << _ACEOF >conftest.$ac_ext
1403414068/* end confdefs.h. */
@@ -14058,42 +14092,11 @@ fi
1405814092
1405914093{ $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_computed_gotos " >&5
1406014094$as_echo " $ac_cv_computed_gotos " >&6 ; }
14061- if test " $ac_cv_computed_gotos " = yes
14062- then
14095+ case " $ac_cv_computed_gotos " in yes* )
1406314096
1406414097$as_echo " #define HAVE_COMPUTED_GOTOS 1" >> confdefs.h
1406514098
14066- fi
14067-
14068- # Check for --with-computed-gotos
14069- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for --with-computed-gotos" >&5
14070- $as_echo_n " checking for --with-computed-gotos... " >&6 ; }
14071-
14072- # Check whether --with-computed-gotos was given.
14073- if test " ${with_computed_gotos+set} " = set ; then :
14074- withval=$with_computed_gotos ;
14075- if test " $withval " = yes
14076- then
14077-
14078- $as_echo " #define USE_COMPUTED_GOTOS 1" >> confdefs.h
14079-
14080- { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
14081- $as_echo " yes" >&6 ; }
14082- fi
14083- if test " $withval " = no
14084- then
14085-
14086- $as_echo " #define USE_COMPUTED_GOTOS 0" >> confdefs.h
14087-
14088- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
14089- $as_echo " no" >&6 ; }
14090- fi
14091-
14092- else
14093- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no value specified" >&5
14094- $as_echo " no value specified" >&6 ; }
14095- fi
14096-
14099+ esac
1409714100
1409814101case $ac_sys_system in
1409914102AIX* )
0 commit comments