--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,7 @@
 AC_PATH_PROGS(SHA1, sha1 sha1sum)
 AC_PATH_PROGS(SED, sed gsed)
 AX_PATH_QMAKE4
+PKG_PROG_PKG_CONFIG
 
 AM_MAINTAINER_MODE
 
@@ -1792,7 +1793,7 @@
   fi
   AX_LANG_WNOERROR  # end AC_LANG_WERROR
 
-  QT_CONFIG_OPTS="debug"
+  QT_CONFIG_OPTS="debug nostrip"
 else
   CFLAGS="$CFLAGS -DNDEBUG"
   CXXFLAGS="$CXXFLAGS -DNDEBUG"
@@ -1810,7 +1811,7 @@
   AX_CFLAGS_GCC_OPTION([-Wno-unused-variable],  [SCIM_CFLAGS])
   AX_LANG_WNOERROR  # end AC_LANG_WERROR
 
-  QT_CONFIG_OPTS="release"
+  QT_CONFIG_OPTS="release nostrip"
 fi
 
 AC_ARG_ENABLE(warnings-into-error,
