cmdassist/configure.in
author chenpu@localhost
Mon, 03 May 2010 17:42:21 -0700
changeset 29 a3050cd175fe
parent 27 cd26fa2b171e
permissions -rw-r--r--
Modified configure.in to add 8 more languages to ALL_LINGUAS
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     1
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     2
# CDDL HEADER START
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     3
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     7
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    10
# See the License for the specific language governing permissions
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    11
# and limitations under the License.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    12
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    18
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    19
# CDDL HEADER END
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    20
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    21
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    22
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    23
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    24
# Use is subject to license terms.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    25
#
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    26
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    27
#                                               -*- Autoconf -*-
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    28
# Process this file with autoconf to produce a configure script.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    29
27
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    30
m4_define(cmdassist_version, 2.0)
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    31
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    32
AC_PREREQ(2.61)
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    33
AC_INIT(CommandAssistant, [cmdassist_version])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    34
AM_INIT_AUTOMAKE(CommandAssistant, [cmdassist_version])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    35
AC_CONFIG_SRCDIR([config.h.in])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    36
AC_CONFIG_HEADER([config.h])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    37
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    38
# Checks for programs.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    39
AC_PROG_CC
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    40
AC_HEADER_STDC
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    41
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    42
# Checks for libraries.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    43
PKG_CHECK_MODULES(SEARCH, [libgnome-2.0 >= 2.14 libgnomeui-2.0 >= 2.14 libglade-2.0 >= 2.6.0  libpanelapplet-2.0  ])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    44
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    45
dnl Checks for i18n
29
a3050cd175fe Modified configure.in to add 8 more languages to ALL_LINGUAS
chenpu@localhost
parents: 27
diff changeset
    46
ALL_LINGUAS="de es fr it ja ko pt_BR zh_CN zh_TW" 
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    47
GETTEXT_PACKAGE=commandAssistant
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    48
AC_SUBST(GETTEXT_PACKAGE)
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    49
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    50
                   [domain used for gettext() calls])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    51
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    52
AM_GLIB_GNU_GETTEXT
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    53
IT_PROG_INTLTOOL([0.35.0])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    54
if test "x${prefix}" = "xNONE"; then
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    55
  AC_DEFINE_UNQUOTED(CMDASSIST_LOCALEDIR, "${ac_default_prefix}/share/locale", [Locale directory])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    56
else
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    57
  AC_DEFINE_UNQUOTED(CMDASSIST_LOCALEDIR, "${prefix}/share/locale", [Locale directory])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    58
fi
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    59
8
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    60
# define the pixmapdir
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    61
if test "x${prefix}" = "xNONE"; then
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    62
  AC_DEFINE_UNQUOTED(CMDASSIST_PIXDIR, "${ac_default_prefix}/share/pixmaps", [Data directory])
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    63
else
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    64
  AC_DEFINE_UNQUOTED(CMDASSIST_PIXDIR, "${prefix}/share/pixmaps", [Data directory])
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    65
fi
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    66
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    67
# define the datadir
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    68
if test "x${prefix}" = "xNONE"; then
8
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    69
  AC_DEFINE_UNQUOTED(CMDASSIST_DATADIR, "${ac_default_prefix}/lib/cmdAssist", [Data directory])
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    70
else
8
824cd3956314 Changed copyright info in each source file
chenpu@localhost
parents: 0
diff changeset
    71
  AC_DEFINE_UNQUOTED(CMDASSIST_DATADIR, "${prefix}/lib/cmdAssist", [Data directory])
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    72
fi
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    73
27
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    74
# define helpdir
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    75
if test "x${prefix}" = "xNONE"; then
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    76
  AC_DEFINE_UNQUOTED(CMDASSIST_HELPDIR, "${ac_default_prefix}/share/gnome/help/CommandAssistant", [Data directory])
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    77
else
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    78
  AC_DEFINE_UNQUOTED(CMDASSIST_HELPDIR, "${prefix}/share/gnome/help/CommandAssistant", [Data directory])
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    79
fi
cd26fa2b171e Bug fix for #6938970, missing proper help files
chenpu@localhost
parents: 19
diff changeset
    80
19
e2b1f15861b8 bug fix
chenpu@localhost
parents: 8
diff changeset
    81
AC_CONFIG_MACRO_DIR([m4])
e2b1f15861b8 bug fix
chenpu@localhost
parents: 8
diff changeset
    82
GNOME_DOC_INIT
e2b1f15861b8 bug fix
chenpu@localhost
parents: 8
diff changeset
    83
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    84
# Checks for header files.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    85
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    86
# Checks for typedefs, structures, and compiler characteristics.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    87
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    88
# Checks for library functions.
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    89
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    90
AC_OUTPUT([ 
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    91
Makefile
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    92
src/Makefile
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    93
image/Makefile
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    94
data/Makefile
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    95
po/Makefile.in
19
e2b1f15861b8 bug fix
chenpu@localhost
parents: 8
diff changeset
    96
help/Makefile
0
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    97
])
7d051fdd6e35 Init Command Assistant project
Jeffrey Chen
parents:
diff changeset
    98