Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/configure

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

revision 1.3 by maloninc, Fri Jul 29 12:21:31 2005 UTC revision 1.5 by maloninc, Fri Aug 5 00:41:32 2005 UTC
# Line 311  ac_includes_default="\ Line 311  ac_includes_default="\
311  # include <unistd.h>  # include <unistd.h>
312  #endif"  #endif"
313    
314  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os IS_DARWIN_TRUE IS_DARWIN_FALSE IS_MINGW_TRUE IS_MINGW_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os IS_DARWIN_TRUE IS_DARWIN_FALSE IS_MINGW_TRUE IS_MINGW_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBICONV CPP EGREP LIBOBJS LTLIBOBJS'
315  ac_subst_files=''  ac_subst_files=''
316    
317  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 864  Optional Features: Line 864  Optional Features:
864    --disable-dependency-tracking  speeds up one-time build    --disable-dependency-tracking  speeds up one-time build
865    --enable-dependency-tracking   do not reject slow dependency extractors    --enable-dependency-tracking   do not reject slow dependency extractors
866    
867    Optional Packages:
868      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870      --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
871    
872  Some influential environment variables:  Some influential environment variables:
873    CXX         C++ compiler command    CXX         C++ compiler command
874    CXXFLAGS    C++ compiler flags    CXXFLAGS    C++ compiler flags
# Line 3403  fi Line 3408  fi
3408    
3409  # Checks for libraries.  # Checks for libraries.
3410  # FIXME: Replace `main' with a function in `-liconv':  # FIXME: Replace `main' with a function in `-liconv':
3411    #AC_CHECK_LIB([iconv], [main])
3412    
3413    
3414    
3415    
3416    
3417  echo "$as_me:$LINENO: checking for main in -liconv" >&5  # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3418  echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6  if test "${with_libiconv_prefix+set}" = set; then
3419  if test "${ac_cv_lib_iconv_main+set}" = set; then    withval="$with_libiconv_prefix"
3420    
3421        for dir in `echo "$withval" | tr : ' '`; do
3422          if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3423          if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3424        done
3425    
3426    fi;
3427    
3428      echo "$as_me:$LINENO: checking for iconv" >&5
3429    echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3430    if test "${am_cv_func_iconv+set}" = set; then
3431    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3432  else  else
3433    ac_check_lib_save_LIBS=$LIBS  
3434  LIBS="-liconv  $LIBS"      am_cv_func_iconv="no, consider installing GNU libiconv"
3435  cat >conftest.$ac_ext <<_ACEOF      am_cv_lib_iconv=no
3436        cat >conftest.$ac_ext <<_ACEOF
3437  /* confdefs.h.  */  /* confdefs.h.  */
3438  _ACEOF  _ACEOF
3439  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3440  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3441  /* end confdefs.h.  */  /* end confdefs.h.  */
3442    #include <stdlib.h>
3443    #include <iconv.h>
3444    int
3445    main ()
3446    {
3447    iconv_t cd = iconv_open("","");
3448           iconv(cd,NULL,NULL,NULL,NULL);
3449           iconv_close(cd);
3450      ;
3451      return 0;
3452    }
3453    _ACEOF
3454    rm -f conftest.$ac_objext conftest$ac_exeext
3455    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3456      (eval $ac_link) 2>conftest.er1
3457      ac_status=$?
3458      grep -v '^ *+' conftest.er1 >conftest.err
3459      rm -f conftest.er1
3460      cat conftest.err >&5
3461      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462      (exit $ac_status); } &&
3463             { ac_try='test -z "$ac_c_werror_flag"
3464                             || test ! -s conftest.err'
3465      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466      (eval $ac_try) 2>&5
3467      ac_status=$?
3468      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469      (exit $ac_status); }; } &&
3470             { ac_try='test -s conftest$ac_exeext'
3471      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472      (eval $ac_try) 2>&5
3473      ac_status=$?
3474      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475      (exit $ac_status); }; }; then
3476      am_cv_func_iconv=yes
3477    else
3478      echo "$as_me: failed program was:" >&5
3479    sed 's/^/| /' conftest.$ac_ext >&5
3480    
3481    fi
3482    rm -f conftest.err conftest.$ac_objext \
3483          conftest$ac_exeext conftest.$ac_ext
3484        if test "$am_cv_func_iconv" != yes; then
3485          am_save_LIBS="$LIBS"
3486          LIBS="$LIBS -liconv"
3487          cat >conftest.$ac_ext <<_ACEOF
3488    /* confdefs.h.  */
3489    _ACEOF
3490    cat confdefs.h >>conftest.$ac_ext
3491    cat >>conftest.$ac_ext <<_ACEOF
3492    /* end confdefs.h.  */
3493    #include <stdlib.h>
3494    #include <iconv.h>
3495  int  int
3496  main ()  main ()
3497  {  {
3498  main ();  iconv_t cd = iconv_open("","");
3499             iconv(cd,NULL,NULL,NULL,NULL);
3500             iconv_close(cd);
3501    ;    ;
3502    return 0;    return 0;
3503  }  }
# Line 3450  if { (eval echo "$as_me:$LINENO: \"$ac_l Line 3524  if { (eval echo "$as_me:$LINENO: \"$ac_l
3524    ac_status=$?    ac_status=$?
3525    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3527    ac_cv_lib_iconv_main=yes    am_cv_lib_iconv=yes
3528            am_cv_func_iconv=yes
3529  else  else
3530    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3531  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3532    
 ac_cv_lib_iconv_main=no  
3533  fi  fi
3534  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
3535        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
3536  LIBS=$ac_check_lib_save_LIBS        LIBS="$am_save_LIBS"
3537        fi
3538    
3539  fi  fi
3540  echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5  echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
3541  echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6  echo "${ECHO_T}$am_cv_func_iconv" >&6
3542  if test $ac_cv_lib_iconv_main = yes; then    if test "$am_cv_func_iconv" = yes; then
3543    cat >>confdefs.h <<_ACEOF  
3544  #define HAVE_LIBICONV 1  cat >>confdefs.h <<\_ACEOF
3545    #define HAVE_ICONV 1
3546  _ACEOF  _ACEOF
3547    
3548    LIBS="-liconv $LIBS"      echo "$as_me:$LINENO: checking for iconv declaration" >&5
3549    echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
3550        if test "${am_cv_proto_iconv+set}" = set; then
3551      echo $ECHO_N "(cached) $ECHO_C" >&6
3552    else
3553    
3554          cat >conftest.$ac_ext <<_ACEOF
3555    /* confdefs.h.  */
3556    _ACEOF
3557    cat confdefs.h >>conftest.$ac_ext
3558    cat >>conftest.$ac_ext <<_ACEOF
3559    /* end confdefs.h.  */
3560    
3561    #include <stdlib.h>
3562    #include <iconv.h>
3563    extern
3564    #ifdef __cplusplus
3565    "C"
3566    #endif
3567    #if defined(__STDC__) || defined(__cplusplus)
3568    size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3569    #else
3570    size_t iconv();
3571    #endif
3572    
3573    int
3574    main ()
3575    {
3576    
3577      ;
3578      return 0;
3579    }
3580    _ACEOF
3581    rm -f conftest.$ac_objext
3582    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583      (eval $ac_compile) 2>conftest.er1
3584      ac_status=$?
3585      grep -v '^ *+' conftest.er1 >conftest.err
3586      rm -f conftest.er1
3587      cat conftest.err >&5
3588      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589      (exit $ac_status); } &&
3590             { ac_try='test -z "$ac_c_werror_flag"
3591                             || test ! -s conftest.err'
3592      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593      (eval $ac_try) 2>&5
3594      ac_status=$?
3595      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596      (exit $ac_status); }; } &&
3597             { ac_try='test -s conftest.$ac_objext'
3598      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599      (eval $ac_try) 2>&5
3600      ac_status=$?
3601      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602      (exit $ac_status); }; }; then
3603      am_cv_proto_iconv_arg1=""
3604    else
3605      echo "$as_me: failed program was:" >&5
3606    sed 's/^/| /' conftest.$ac_ext >&5
3607    
3608    am_cv_proto_iconv_arg1="const"
3609  fi  fi
3610    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611          am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
3612    fi
3613    
3614        am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3615        echo "$as_me:$LINENO: result: ${ac_t:-
3616             }$am_cv_proto_iconv" >&5
3617    echo "${ECHO_T}${ac_t:-
3618             }$am_cv_proto_iconv" >&6
3619    
3620    cat >>confdefs.h <<_ACEOF
3621    #define ICONV_CONST $am_cv_proto_iconv_arg1
3622    _ACEOF
3623    
3624      fi
3625      LIBICONV=
3626      if test "$am_cv_lib_iconv" = yes; then
3627        LIBICONV="-liconv"
3628      fi
3629    
3630    
3631    
3632  # Checks for header files.  # Checks for header files.
# Line 5126  s,@ac_ct_CC@,$ac_ct_CC,;t t Line 5282  s,@ac_ct_CC@,$ac_ct_CC,;t t
5282  s,@CCDEPMODE@,$CCDEPMODE,;t t  s,@CCDEPMODE@,$CCDEPMODE,;t t
5283  s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t  s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5284  s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t  s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5285    s,@LIBICONV@,$LIBICONV,;t t
5286  s,@CPP@,$CPP,;t t  s,@CPP@,$CPP,;t t
5287  s,@EGREP@,$EGREP,;t t  s,@EGREP@,$EGREP,;t t
5288  s,@LIBOBJS@,$LIBOBJS,;t t  s,@LIBOBJS@,$LIBOBJS,;t t

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

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