Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: source/configure.ac

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/configure ('k') | source/data/Makefile.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*-autoconf-*- 1 # -*-autoconf-*-
2 AC_COPYRIGHT([ Copyright (c) 1999-2014, International Business Machines Corporat ion and others. All Rights Reserved. ]) 2 AC_COPYRIGHT([ Copyright (c) 1999-2015, International Business Machines Corporat ion and others. All Rights Reserved. ])
3 # configure.in for ICU 3 # configure.in for ICU
4 # Stephen F. Booth, heavily modified by Yves and others 4 # Stephen F. Booth, heavily modified by Yves and others
5 5
6 # NOTE: please use 'autoreconf' to rebuild, otherwise 'aclocal && autoconf'.
7
6 # Check for autoconf version 8 # Check for autoconf version
7 AC_PREREQ(2.68) 9 AC_PREREQ(2.69)
8 10
9 # Process this file with autoconf to produce a configure script 11 # Process this file with autoreconf to produce a configure script
10 AC_INIT([ICU], 12 AC_INIT([ICU],
11 m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"), 13 m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"),
12 [http://icu-project.org/bugs], 14 [http://icu-project.org/bugs],
13 [International Components for Unicode], 15 [International Components for Unicode],
14 [http://icu-project.org]) 16 [http://icu-project.org])
15 17
16 AC_CONFIG_MACRO_DIR([config/m4]) 18 AC_CONFIG_MACRO_DIR([config/m4])
17 AC_CONFIG_SRCDIR([common/unicode/utypes.h]) 19 AC_CONFIG_SRCDIR([common/unicode/utypes.h])
18 20
19 PACKAGE="icu" 21 PACKAGE="icu"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 ) 404 )
403 AC_MSG_RESULT($enabled) 405 AC_MSG_RESULT($enabled)
404 AC_SUBST(U_ENABLE_TRACING) 406 AC_SUBST(U_ENABLE_TRACING)
405 407
406 # check if elf.h is present. 408 # check if elf.h is present.
407 AC_CHECK_HEADERS([elf.h]) 409 AC_CHECK_HEADERS([elf.h])
408 if test "x$ac_cv_header_elf_h" = "xyes"; then 410 if test "x$ac_cv_header_elf_h" = "xyes"; then
409 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; 411 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
410 fi 412 fi
411 413
414 # Enable/disable plugins
415 AC_ARG_ENABLE(plugins,
416 [ --enable-plugins enable plugins [default=no]],
417 [case "${enableval}" in
418 yes) plugins=true ;;
419 no) plugins=false ;;
420 *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugins) ;;
421 esac],
422 plugins=false)
423 ICU_CONDITIONAL(PLUGINS, test "$plugins" = true)
424
425 if test "x$plugins" = "xtrue"; then
426 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
427 fi
428
429
412 U_ENABLE_DYLOAD=1 430 U_ENABLE_DYLOAD=1
413 enable=yes 431 enable=yes
414 AC_MSG_CHECKING([whether to enable dynamic loading of plugins]) 432 AC_MSG_CHECKING([whether to enable dynamic loading of plugins. Ignored if plugin s disabled.])
415 AC_ARG_ENABLE(dyload, 433 AC_ARG_ENABLE(dyload,
416 [ --disable-dyload disable dynamic loading [default=no]], 434 [ --disable-dyload disable dynamic loading [default=no]],
417 [ case "${enableval}" in 435 [ case "${enableval}" in
418 yes|"") 436 yes|"")
419 U_ENABLE_DYLOAD=1 437 U_ENABLE_DYLOAD=1
420 enable=yes 438 enable=yes
421 ;; 439 ;;
422 no) 440 no)
423 U_ENABLE_DYLOAD=0; 441 U_ENABLE_DYLOAD=0;
424 enable=no; 442 enable=no;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 else 530 else
513 U_HAVE_ATOMIC=0 531 U_HAVE_ATOMIC=0
514 fi 532 fi
515 # Make this available via CPPFLAGS 533 # Make this available via CPPFLAGS
516 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" 534 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}"
517 AC_SUBST(U_HAVE_ATOMIC) 535 AC_SUBST(U_HAVE_ATOMIC)
518 536
519 AC_LANG_POP([C++]) 537 AC_LANG_POP([C++])
520 538
521 # Always build ICU with multi-threading support. 539 # Always build ICU with multi-threading support.
522 threads=true
523 ICU_USE_THREADS=1
524 OLD_LIBS=${LIBS} 540 OLD_LIBS=${LIBS}
525 541
526 if test $threads = true; then 542 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
527 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init 543 # and must do this before seaching for pthread_mutex_destroy, or
528 # and must do this before seaching for pthread_mutex_destroy, or 544 # we will pick up libpthreads.so not libpthread.so
529 # we will pick up libpthreads.so not libpthread.so 545 # If this fails, then we must test for HPUX specials, before
530 # If this fails, then we must test for HPUX specials, before 546 # moving on to a more generic test
531 # moving on to a more generic test
532 547
533 AC_CHECK_LIB(pthread, pthread_attr_init) 548 AC_CHECK_LIB(pthread, pthread_attr_init)
534 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then 549 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
535 ICU_USE_THREADS=1 550 :
551 else
552 # Locate the right library for POSIX threads. We look for the
553 # symbols in the libraries first, because on Solaris libc provides
554 # pthread_create but libpthread has the real code :(
555 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
556 # FreeBSD users may need libpthread if they do not have libc_r.
557
558 AC_SEARCH_LIBS_FIRST(pthread_mutex_destroy, pthread pthreads c_r )
559
560 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
561 :
536 else 562 else
537 # Locate the right library for POSIX threads. We look for the 563 # For HP 11
538 # symbols in the libraries first, because on Solaris libc provides 564 AC_CHECK_LIB(pthread, pthread_mutex_init)
539 # pthread_create but libpthread has the real code :( 565 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
540 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread 566 :
541 # FreeBSD users may need libpthread if they do not have libc_r.
542
543 AC_SEARCH_LIBS_FIRST(pthread_mutex_destroy, pthread pthreads c_r )
544
545 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
546 ICU_USE_THREADS=1
547 else
548 # For HP 11
549 AC_CHECK_LIB(pthread, pthread_mutex_init)
550 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
551 ICU_USE_THREADS=1
552 fi
553 fi
554
555 AC_CHECK_FUNC(pthread_mutex_lock)
556
557 if test $ac_cv_func_pthread_mutex_lock = yes; then
558 ICU_USE_THREADS=1
559 fi 567 fi
560 fi 568 fi
561 # Check to see if we are using CygWin with MSVC 569
562 case "${host}" in 570 AC_CHECK_FUNC(pthread_mutex_lock)
563 *-pc-cygwin*|*-pc-mingw*) 571
564 # For gcc, the thread options are set by mh-mingw/mh-cygwin 572 if test $ac_cv_func_pthread_mutex_lock = yes; then
565 # For msvc, the thread options are set by runConfigureICU 573 :
566 ICU_USE_THREADS=1 574 fi
567 ;; 575 fi
568 *-*-hpux*) 576 # Check to see if we are using CygWin with MSVC
569 # Add -mt because it does several nice things on newer compilers. 577 case "${host}" in
570 case "${icu_cv_host_frag}" in 578 *-pc-cygwin*|*-pc-mingw*)
571 mh-hpux-acc) 579 # For gcc, the thread options are set by mh-mingw/mh-cygwin
572 OLD_CXXFLAGS="${CXXFLAGS}" 580 # For msvc, the thread options are set by runConfigureICU
573 CXXFLAGS="${CXXFLAGS} -mt" 581 :
574 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then 582 ;;
575 CXXFLAGS="${OLD_CXXFLAGS}" 583 *-*-hpux*)
576 else 584 # Add -mt because it does several nice things on newer compilers.
577 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt" 585 case "${icu_cv_host_frag}" in
578 fi 586 mh-hpux-acc)
579 ;; 587 OLD_CXXFLAGS="${CXXFLAGS}"
580 esac 588 CXXFLAGS="${CXXFLAGS} -mt"
581 ;; 589 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
582 *-*-solaris*) 590 CXXFLAGS="${OLD_CXXFLAGS}"
583 case "${icu_cv_host_frag}" in 591 else
584 mh-solaris) 592 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
585 LIBS="${LIBS} -mt" 593 fi
586 ;;
587 esac
588 ;; 594 ;;
589 esac 595 esac
590 fi 596 ;;
597 *-*-solaris*)
598 case "${icu_cv_host_frag}" in
599 mh-solaris)
600 LIBS="${LIBS} -mt"
601 ;;
602 esac
603 ;;
604 esac
591 605
592 AC_ARG_ENABLE(weak-threads, 606 AC_ARG_ENABLE(weak-threads,
593 [ --enable-weak-threads weakly reference the threading library [defau lt=no]], 607 [ --enable-weak-threads weakly reference the threading library [defau lt=no]],
594 [case "${enableval}" in 608 [case "${enableval}" in
595 yes) 609 yes)
596 LIB_THREAD="${LIBS%${OLD_LIBS}}" 610 LIB_THREAD="${LIBS%${OLD_LIBS}}"
597 LIBS=${OLD_LIBS} 611 LIBS=${OLD_LIBS}
598 ;; 612 ;;
599 no) ;; 613 no) ;;
600 *) AC_MSG_ERROR(bad value ${enableval} for --enable-weak-threads ) ;; 614 *) AC_MSG_ERROR(bad value ${enableval} for --enable-weak-threads ) ;;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; 656 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
643 esac 657 esac
644 unset asv 658 unset asv
645 else 659 else
646 GENCCODE_ASSEMBLY="-a sun-x86" 660 GENCCODE_ASSEMBLY="-a sun-x86"
647 fi ;; 661 fi ;;
648 sparc-*-solaris*) 662 sparc-*-solaris*)
649 GENCCODE_ASSEMBLY="-a sun" 663 GENCCODE_ASSEMBLY="-a sun"
650 ;; 664 ;;
651 ia64-*-hpux*) 665 ia64-*-hpux*)
652 GENCCODE_ASSEMBLY="-a aCC-ia64" 666 # There has been some issues with building ICU data on HPUX ia64 aCC
667 # when using the assemble code setting below. For now, build without
668 # assemble code for this platform. This will increase the build time.
669 # GENCCODE_ASSEMBLY="-a aCC-ia64"
653 ;; 670 ;;
654 esac 671 esac
655 AC_SUBST(GENCCODE_ASSEMBLY) 672 AC_SUBST(GENCCODE_ASSEMBLY)
656 673
657 AC_MSG_RESULT($GENCCODE_ASSEMBLY) 674 AC_MSG_RESULT($GENCCODE_ASSEMBLY)
658 675
659 # Checks for header files 676 # Checks for header files
660 AC_CHECK_HEADERS(inttypes.h) 677 AC_CHECK_HEADERS(inttypes.h)
661 if test $ac_cv_header_inttypes_h = no; then 678 if test $ac_cv_header_inttypes_h = no; then
662 U_HAVE_INTTYPES_H=0 679 U_HAVE_INTTYPES_H=0
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}" 1455 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
1439 fi 1456 fi
1440 1457
1441 if test "$tools" = false; 1458 if test "$tools" = false;
1442 then 1459 then
1443 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests." 1460 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
1444 echo "## Expect build failures in the 'data', 'test', and other director ies." 1461 echo "## Expect build failures in the 'data', 'test', and other director ies."
1445 fi 1462 fi
1446 1463
1447 $as_unset _CXX_CXXSUFFIX 1464 $as_unset _CXX_CXXSUFFIX
OLDNEW
« no previous file with comments | « source/configure ('k') | source/data/Makefile.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698