Develop and Download Open Source Software

Browse CVS Repository

Diff of /freewnn/FreeWnn/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.18 by hiroo, Mon Sep 24 08:36:12 2001 UTC revision 1.19 by hiroo, Sun Mar 3 12:53:56 2002 UTC
# Line 250  AC_SUBST(ipv6) Line 250  AC_SUBST(ipv6)
250  AC_ARG_ENABLE(unsafe-path,  AC_ARG_ENABLE(unsafe-path,
251  [  --enable-unsafe-path    allow creating files in an arbitrary path [default=no]],  [  --enable-unsafe-path    allow creating files in an arbitrary path [default=no]],
252  [case "${enableval}" in  [case "${enableval}" in
253     yes) unsafe_path = true;;     yes) unsafe_path=true;;
254     no)  unsafe_path = false;;     no)  unsafe_path=false;;
255     *)   AC_MSG_ERROR(bad value for --enable-unsafe-path) ;;     *)   AC_MSG_ERROR(bad value for --enable-unsafe-path) ;;
256  esac], unsafe_path=false)  esac], unsafe_path=false)
257  AC_SUBST(unsafe_path)  AC_SUBST(unsafe_path)
# Line 271  CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"} Line 271  CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"}
271  case $host in  case $host in
272  *-*-linux*)  *-*-linux*)
273      CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"      CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
274      if test $debug = true; then      CDEBUGFLAGS="-O2 -fno-strength-reduce"
       CDEBUGFLAGS="-g2 -O2 -fno-strength-reduce"  
     else  
       CDEBUGFLAGS="-O2 -fno-strength-reduce"  
     fi  
275      ;;      ;;
276  *-*-freebsd*|*-*-netbsd*|*-*-openbsd*)  *-*-freebsd*|*-*-netbsd*|*-*-openbsd*)
277      CCOPTIONS="-DCSRG_BASED"      CCOPTIONS="-DCSRG_BASED"
278      if test $debug = true; then      CDEBUGFLAGS="-O2 -fno-strength-reduce"
       CDEBUGFLAGS="-g2 -O2 -fno-strength-reduce -fstack-check"  
     else  
       CDEBUGFLAGS="-O2 -fno-strength-reduce"  
     fi  
279      ;;      ;;
280  *-*-bsdi*)  *-*-bsdi*)
281      CCOPTIONS="-DCSRG_BASED"      CCOPTIONS="-DCSRG_BASED"
282      if test $debug = true; then      CDEBUGFLAGS="-O2 -fno-strength-reduce"
       CDEBUGFLAGS="-g2 -O2 -fno-strength-reduce"  
     else  
       CDEBUGFLAGS="-O2 -fno-strength-reduce"  
     fi  
283      ;;      ;;
284  *-*-sunos*)  *-*-sunos*)
285        if test `basename $CC` = gcc; then        if test $GCC = yes; then
286          CCOPTIONS="-Dsun -Dsparc"          CCOPTIONS="-Dsun -Dsparc"
287          if test $debug = true; then          CDEBUGFLAGS=-O2
           CDEBUGFLAGS="-g2 -O2"  
         else  
           CDEBUGFLAGS=-O2  
         fi  
288        else        else
289          CCOPTIONS=""          CCOPTIONS=""
290          CDEBUGFLAGS=-O4          CDEBUGFLAGS=-O4
# Line 308  case $host in Line 292  case $host in
292        ;;        ;;
293  *-*-solaris2.*)  *-*-solaris2.*)
294      # Will 'solaris*' be OK?      # Will 'solaris*' be OK?
295        if test `basename $CC` = gcc; then        if test $GCC = yes; then
296          CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"          CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV"
297          if test $debug = true; then          CDEBUGFLAGS=-O2
           CDEBUGFLAGS="-g2 -O2"  
         else  
           CDEBUGFLAGS=-O2  
         fi  
298        else        else
299          CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"          CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV"
300            CDEBUGFLAGS=-O4          CDEBUGFLAGS=-O4
301        fi        fi
302      ;;      ;;
303  *-*-hpux*)  *-*-hpux*)
304      if test `basename $CC` = gcc; then      if test $GCC = yes; then
305          CCOPTIONS="-Dhpux -DSYSV"          CCOPTIONS="-Dhpux -DSYSV"
306          if test $debug = true; then          CDEBUGFLAGS=-O2
           CDEBUGFLAGS="-g2 -O2"  
         else  
           CDEBUGFLAGS=-O2  
         fi  
307      else      else
308          CCOPTIONS="-Ae -Dhpux -DSYSV"          CCOPTIONS="-Ae -Dhpux -DSYSV"
309      fi      fi
310        ;;        ;;
311  i[[34567]]86-pc-beos*)  i[[34567]]86-pc-beos*)
312          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
313          if test $debug = true; then          CDEBUGFLAGS="-O2 -fno-strength-reduce"
           CDEBUGFLAGS="-g2 -O2 -fno-strength-reduce"  
         else  
           CDEBUGFLAGS="-O2 -fno-strength-reduce"  
         fi  
314          ;;          ;;
315  powerpc-*-beos*)  powerpc-*-beos*)
316          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"          CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
         if test $debug = true; then  
           CDEBUGFLAGS="-g2"  
         else  
           CDEBUGFLAGS=""  
         fi  
317          ;;          ;;
318  *-*-aix*)  *-*-aix*)
319      if test `basename $CC` = gcc; then      if test $GCC = yes; then
320        CDEBUGFLAGS=-O2        CDEBUGFLAGS=-O2
         if test $debug = true; then  
           CDEBUGFLAGS="-g2"  
         else  
           CDEBUGFLAGS=""  
         fi  
321      else      else
322        CDEBUGFLAGS=-O        CDEBUGFLAGS=-O
323      fi      fi
# Line 367  powerpc-*-beos*) Line 329  powerpc-*-beos*)
329      ;;      ;;
330  esac  esac
331    
332    dnl Checking if we use gcc or not
333    if test $debug = true; then
334        if test $GCC = yes; then
335          CDEBUGFLAGS="-g2 -Wall -fstack-check $CDEBUGFLAGS"
336        fi
337    fi
338    
339  if test ${debug} = true; then  if test ${debug} = true; then
340       INSTPGMFLAGS=       INSTPGMFLAGS=
341  else  else

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26