uic kde-plugin detection problem on cygwin

Ralf Habacker Ralf.Habacker at freenet.de
Sat Nov 29 00:44:55 GMT 2003


Hi,

in recent kde-common/admin/acinclude.m4.in there is a check if UIC support
kde plugins, which fails on cygwin.
The relating lines are listed below and there is a message that the check
(checking lowercase klineedit while the class name is only one time in the
resulting file actest.cpp mixed case ) would be correct.
With this check I have a real problem on cygwin because grep does not search
case insensitive by default as it seems in other unix based os (I understand
the hint in this way). The check does not run execpt using grep -i.

Would it be possible to add -i to the grep, because in systems, which grep
is case insensitive adding this switch does not have any effect. (A patch is
listed below)

Thanks

---
admin/acinclude.m4.in ---------------------------------------------------
<snip>
cat > actest.ui << EOF
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>NewConnectionDialog</class>
<widget class="QDialog">
   <widget class="KLineEdit">
        <property name="name">
           <cstring>testInput</cstring>
        </property>
   </widget>
</widget>
</UI>
EOF

kde_cv_uic_plugins=no
kde_line="$UIC_PATH -L $kde_widgetdir"
if test x$ac_uic_supports_nounload = xyes; then
   kde_line="$kde_line -nounload"
fi
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
if AC_TRY_EVAL(kde_line); then
	# if you're trying to debug this check and think it's incorrect,
	# better check your installation. The check _is_ correct - your
	# installation is not.
	if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
                                  ^^^^^^^^^^^^^^
		kde_cv_uic_plugins=yes
	fi
fi
rm -f actest.ui actest.cpp
])

----- actest.cpp --------------------------
<snip>

NewConnectionDialog::NewConnectionDialog( QWidget* parent, const char* name,
bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{

    testInput = new KLineEdit( this, "testInput" );
    languageChange();
}
</snip>


-----patch-----------------------------------------------------------------

Index: acinclude.m4.in
===================================================================
RCS file: /home/kde/kde-common/admin/acinclude.m4.in,v
retrieving revision 2.424
diff -u -3 -p -B -u -r2.424 acinclude.m4.in
--- admin/acinclude.m4.in     27 Oct 2003 10:55:56 -0000      2.424
+++ admin/acinclude.m4.in     29 Nov 2003 00:39:02 -0000
@@ -1614,7 +1614,7 @@ if AC_TRY_EVAL(kde_line); then
        # if you're trying to debug this check and think it's incorrect,
        # better check your installation. The check _is_ correct - your
        # installation is not.
-       if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
+       if test -f actest.cpp && grep -i klineedit actest.cpp > /dev/null;
then
                kde_cv_uic_plugins=yes
        fi
 fi






More information about the kde-core-devel mailing list